144 Star 1K Fork 202

GVP凹凸实验室/Taro

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README
MIT

Taro

A cross-platform and -framework solution for easily developing applications across mini-programs, Web, APP, etc.

PRs Welcome GitHub contributors GitHub commit activity GitHub closed issues GitHub commits since latest release (by date) GitHub Release Date

简体中文 | English

👽 Taro['tɑ:roʊ], Ultraman Taro, the chief instructor of the Space Guard, the strongest Ultraman.

Contents

  1. Introduction
  2. Resources
  3. Community
  4. Cases
  5. Feature
  6. Join us
  7. Issues
  8. Acknowledgements
  9. Contributors
  10. Milestones
  11. Release Notes
  12. Communication

Introduction

Taro is an open style cross-platform and -framework solution that supports users to develop WeChat/JD/Baidu/Alipay/ByteDance/QQ mini-programs/H5 and React Native applications with React/Vue/Nerv and other frameworks. Nowdays, there are various types of mini-programs on the market. Multiple platforms such as Web, React Native, and WeChat mini-programs are widely used by the developers. Different codes are written while we require to show features on different platforms. The ability to be compatible with multiple platforms within one code is extremely needed.

Version

To migrate from Taro 1/2 to Taro 3, please refer to The definitive guide to Taro version upgrades.

Resources

5 Minute Tutorial

Awesome-taro

Juejin book: Taro Cross-platform Development in Action

Community

Taro market

UI Library

Name Link Intro Framework Taro Version
taro-ui https://taro-ui.jd.com/#/ A cross-platform UI library based on Taro React Taro 1/2/3 (Alpha-version needed for Taro 3)
NutUI https://nutui.jd.com/#/ A JD-style light-weighted Vue library Vue3 Taro 3
taroify https://taroify.gitee.io/taroify.com/introduce/ A light-weighted and reliable Taro library for mini-programs (Vant's Taro version) React Taro 3
@antmjs/vantui https://antmjs.github.io/vantui/#/home A UI library that supports Taro and React, based on Youzan VantWeapp React Taro 3

Cases

Taro has been used in our production environment, and widely used in the industry for cross-platform development.

Call for more cases

Feature

Framework support

React/Nerv

Taro 3 has full-featured development experience with React/Nerv, please refer to Basic tutorial for React.

Example:

import React, { Component } from 'react'
import { View, Text } from '@tarojs/components'

export default class Index extends Component {
  state = {
    msg: 'Hello World! '
  }
  componentWillUnmount () { }

  componentDidShow () { }

  componentDidHide () { }

  render () {
    return (
      <View className='index'>
        <Text>{this.state.msg}</Text>
      </View>
    )
  }
}

Vue

Taro 3 has full-featured development experience with Vue, please refer to Basic tutorial for Vue.

Example:

<template>
  <view class="index">
    <text>{{msg}}</text>
  </view>
</template>

<script>
export default {
  data () {
    return {
      msg: 'Hello World!'
    }
  },
  created () {},
  onShow () {},
  onHide () {}
}
</script>

Cross-platform support

Taro's ultimate goal is to provide a solution for cross-platform development.

Taro supports converting code to WeChat/JD/Baidu/Alipay/ByteDance/QQ mini-programs and H5 applications.

Join us

Taro community

Welcome to the Taro community

Contribute to Taro

You are very welcome to contribute your code for Taro, before submitting your code, please read CONTRIBUTING.

If you want to implement a feature for Taro, you need to write an RFC document first. Follow the RFC and submit your code after the discussion in the community.

Issues

Report issues to Taro

Highly recommend reading these books before reporting issues How to Ask Questions The Smart Way(Chinese), How to Ask Questions in an open-source community, How to Report Bugs Effectively, How to Ask Bad Questions to Open Source Projects(Chinese). Good questions can be answered quickly.

Let's fund issues in this repository

Acknowledgements

nanjingboy jsNewbee Qiyu8 Garfield550
nanjingboy jsNewbee Qiyu8 Garfield Lee

Contributors

Milestones

Milestones

Release Notes

Taro follows Angular Style Commit Message Conventions, please read Release Notes.

Communication

Official Wechat group

License

MIT License

Copyright (c) O2Team

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

MIT License Copyright (c) 2018 O2Team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ======================================================================== MIT (react-devtools): The following files embed [react-devtools](https://github.com/facebook/react) MIT: `/packages/taro-plugin-react-devtools/src/backend/index.js` See `/LICENSE` for details of the license. ================== MIT (vue-devtools): The following files embed [vue-devtools](https://github.com/vuejs/devtools) MIT: `/packages/taro-plugin-vue-devtools/src/backend/*` See `/LICENSE` for details of the license. ================== MIT (vite): The following files embed [vite](https://github.com/vitejs/vite) MIT: `/packages/taro-webpack5-prebundle/src/prebundle/scanImport.ts`, `/packages/taro-webpack5-prebundle/src/prebundle/bundle.ts`, `/packages/taro-webpack5-prebundle/src/h5.ts`, `/packages/taro-webpack5-prebundle/src/min.ts` See `/LICENSE` for details of the license. ================== MIT (webpack): The following files embed [webpack](https://github.com/webpack/webpack) MIT: `/packages/taro-webpack5-prebundle/src/webpack/TaroContainerEntryModule.ts`, `/packages/taro-webpack5-prebundle/src/webpack/TaroContainerPlugin.ts`, `/packages/taro-webpack5-prebundle/src/webpack/TaroContainerReferencePlugin.ts`, `/packages/taro-webpack5-prebundle/src/webpack/TaroModuleFederationPlugin.ts` See `/LICENSE` for details of the license. ================== MIT (sizzle): The following files embed [sizzle](https://github.com/jquery/sizzle) MIT: `/packages/taro-extends/src/jquery/sizzle.js` See `/LICENSE.txt` for details of the license. ================== MIT (zepto): The following files embed [zepto](https://github.com/madrobby/zepto) MIT: `/packages/taro-extends/src/jquery/zepto.js`, `/packages/taro-extends/src/jquery/event.js` See `/MIT-LICENSE` for details of the license. ================== MIT (css-to-react-native): The following files embed [css-to-react-native](https://github.com/styled-components/css-to-react-native) MIT: `/packages/css-to-react-native/src/css-to-react-native/*` See `/LICENSE.md` for details of the license. ================== MIT (reactify-wc): The following files embed [reactify-wc](https://github.com/BBKolton/reactify-wc) MIT: `/packages/taro-components-library-react/src/component-lib/reactify-wc.ts` See `/LICENSE` for details of the license. ================== MIT (ant-design-mobile-rn): The following files embed [ant-design-mobile-rn](https://github.com/ant-design/ant-design-mobile-rn) MIT: `/packages/taro-components-rn/src/components/Swiper/carousel.tsx` See `/LICENSE` for details of the license. ================== MIT (react-wx-images-viewer): The following files embed [react-wx-images-viewer](https://github.com/react-ld/react-wx-images-viewer) MIT: `/packages/taro-h5/src/api/media/image/previewImage.ts` See `/LICENSE` for details of the license. ================== MIT (webpack-contrib/css-loader): The following files embed [webpack-contrib/css-loader](https://github.com/webpack-contrib/css-loader) MIT: `/packages/taro-rn-style-transformer/src/utils/index.ts` See `/LICENSE` for details of the license. ================== MIT (react-native): The following files embed [react-native](https://github.com/facebook/react-native) MIT: `/packages/taro-rn-style-transformer/src/transforms/StyleSheet/*` See `/LICENSE` for details of the license. ================== MIT (myrne/performance-now): The following files embed [myrne/performance-now](https://github.com/myrne/performance-now) MIT: `/packages/taro-runtime/src/bom/raf.ts` See `/LICENSE` for details of the license. ================== Apache (chameleon-api): The following files embed [chameleon-api](https://github.com/chameleon-team/chameleon-api) Apache: `/packages/taro-h5/src/api/device/clipboard.ts` ================== MIT (uni-app): The following files embed [uni-app](https://github.com/dcloudio/uni-app) MIT: `/packages/taro-components-rn/src/components/Video/index.tsx` See `/LICENSE` for details of the license. ================== MIT (miniprogram-render): The following files embed [miniprogram-render](https://github.com/Tencent/kbone) MIT: `/packages/taro-plugin-http/src/runtime/Cookie.ts` See `/LICENSE` for details of the license. ================== MIT (stencil-ds-output-targets): The following files embed [stencil-ds-output-targets](https://github.com/ionic-team/stencil-ds-output-targets/) MIT: `/packages/taro-components-library-react/src/react-component-lib/utils/attachProps.ts` `/packages/taro-components-library-react/src/react-component-lib/utils/case.ts` `/packages/taro-components-library-react/src/react-component-lib/utils/dev.ts` `/packages/taro-components-library-react/src/react-component-lib/utils/index.tsx` `/packages/taro-components-library-react/src/react-component-lib/createComponent.tsx` `/packages/taro-components-library-react/src/react-component-lib/createOverlayComponent.tsx` `/packages/taro-components-library-react/src/react-component-lib/interfaces.ts` `/packages/taro-components-library-vue3/src/vue-component-lib/utils.ts` See `/LICENSE` for details of the license. ================== MIT (stencil-vue2-output-target): The following files embed [stencil-vue2-output-target](https://github.com/diondree/stencil-vue2-output-target) MIT: `/packages/taro-components-library-vue2/src/vue-component-lib/utils.ts` See `/LICENSE` for details of the license.

About

开放式跨端跨框架解决方案,支持使用 React/Vue/Nerv 等框架来开发微信/京东/百度/支付宝/字节跳动/ QQ 小程序/H5/React Native/鸿蒙 等应用。 https://taro.zone/ expand collapse
JavaScript and 6 more languages
MIT
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/o2team/Taro.git
git@gitee.com:o2team/Taro.git
o2team
Taro
Taro
next

Search