React native with yarn
Creating project is similar to doing it with other environments, which is like below.
react-native init sample
To add a module to a react native app, need to do the below to add react-navigation
yarn add react-navigation
Now need to link the added module to the project so that the dependancies are added in
Got this error below,
Command `link` unrecognized. Make sure that you have run `npm install` and that you are inside a react-native project.
Running the npm install is resolving this issue.
Yarn link will add these dependancies to the
References:
No comments:
Post a Comment