An open API service indexing awesome lists of open source software.

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

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
```