The changes in this template will eventually be part of the main RN template (react-native init) - for now this is an example template that can be experimented with and be used to try out auto-linking.
Warning: this uses a pre-release version of the cli (which has auto-linking support), as such; some things may not work as expected - please provide feedback and report any bugs/issues
Run the below command to init a new React Native project that supports auto-linking.
npx @react-native-community/cli@next init --template=@invertase/template <myProjectName>
Note: Some React Native modules may be using an old configuration format and will be excluded from auto-linking but will print warnings similar to the following when running react-native start:
Please report these issues to the individual module repos
yarn addornpm installyour react-native module- Rebuild your app:
- Android:
react-native run-android - iOS:
cd ios/ && pod install,react-native run-ios
- Android:
