Skip to content

invertase/react-native-auto-link-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Native Auto Link Example

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

Init a React Native project with Auto Linking:

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:

image

Please report these issues to the individual module repos

Adding React Native modules to your project

  • yarn add or npm install your react-native module
  • Rebuild your app:
    • Android: react-native run-android
    • iOS: cd ios/ && pod install, react-native run-ios

Additional Resources

About

Init a React Native project with auto-linking 🔥

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published