New React Native project with old version of react native

后端 未结 7 420
渐次进展
渐次进展 2020-12-07 18:18

I am trying to create a new react native project which should utilize an older version of react-native.

The result I would like would be to do something like:

相关标签:
7条回答
  • 2020-12-07 19:23

    rninit is a replacement for react-native init that allows you to specify a particular version of react-native to use.

    Install rninit globally:

    npm install -g rninit
    

    Specify which version of react-native to use:

    rninit init [Project Name] --source react-native@0.14.2
    

    Thanks to @vanson-wing-leung for pointing me to rninit

    0 讨论(0)
提交回复
热议问题