This template allows you to bootstrap a new React Native project with RePack already included.
npx react-native init MyApp --template https://github.com/lukaszchopin/react-native-template-repack.git
This template only works with the new CLI.
Make sure you have uninstalled the legacy react-native-cli
first:
npm uninstall -g react-native-cli
yarn global remove react-native-cli
If you wish to not use npx
, you can also install the new CLI globally:
npm i -g @react-native-community/cli
or
yarn global add @react-native-community/cli
Template was tested only on with React Native v0.66.3