Author: zhiqingchen

Taro recently released 3.2.0-Canary.1, which adds React Native support, built with 58 technologies.

React Native features

  1. Faster compilation speed
    • Based on the new compilation system, the startup speed is doubled
  2. More convenient development and debugging experience
    • Without Webpack, source-Map support is much simpler, which is a huge improvement to the development experience
  3. More comprehensive apis and components
    • 38 new apis
    • Seven components are added
  4. More flexible access methods
    • React Native 0.60 and above is customizable, and we’ll be exploring more versions as well
    • API and components support loading on demand, unused native dependencies, no installation required
    • The React Native ecosystem provides easy access to tools and components
  5. More stable source code
    • Use TypeScript, ESlint, Jest to ensure code quality
    • Community contributions welcome

How to start

New repository starts Bundler

# note: $YARN Global add @tarojs/cli@canary # Create and initialize the Taro project $CD <projectName> $DEVTAG=@canary YARN dev:rn --port 8081 is running on port: 8081Copy the code

The original 3.x repository starts Bundler

# change tarojs dependencies in 'package.json' to '^3.2.0-canary.1' # special note that '@tarojs/taro-rn' @tarojs/ Rn-runner 'may be installed as version 2.x # reinstall dependencies $YARN # start bundler $YARN dev:rn --port 8081 # If bundler is started successfully, the following information is displayedCopy the code

Low release repository

Note Upgrade to 3.x by referring to the upgrade Guide, and then repeat the preceding steps

Start the APP

The corresponding address of the new version shell project is github.com/NervJS/taro…

$git clone -b 0.63.2 [email protected]:NervJS/taro-native shell $yarn Android -- --no-packager $yarn Android -- --no-packagerCopy the code

Related links

  1. RFC corresponding to the version content
  2. 3.2.0 Canary version branch
  3. Shell engineering branch
  4. Latest progress, can pay attention to 58 open source

If you have any questions, click on the link to join the discussion