https://github.com/rhdeck/react-native-set-root
Set root component in react native
https://github.com/rhdeck/react-native-set-root
Last synced: over 1 year ago
JSON representation
Set root component in react native
- Host: GitHub
- URL: https://github.com/rhdeck/react-native-set-root
- Owner: rhdeck
- Created: 2018-01-17T23:33:27.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-25T01:16:01.000Z (over 8 years ago)
- Last Synced: 2025-01-21T17:11:58.476Z (over 1 year ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-native-set-root
Sets the root of a react native package
#Usage
## Global install (best for expo)
```
yarn global add react-native-set-root
(from your project root)
react-native-set-root @myscope/mymodule
```
## React-Native plugin
```
yarn add react-native-set-root
react-native set-root @myscope/mymodule
```
**Note** this will not add the module in question to your project - so best practice is something like
```
yarn add @myscope/mymodule
react-native-set-root @myscope/mymodule
```