update usage of use-component command in README

This commit is contained in:
Artur Girenko 2016-11-21 19:53:27 +01:00
parent 9562b5926d
commit b7193e120b
1 changed files with 5 additions and 1 deletions

View File

@ -125,10 +125,14 @@ React Native packager statically scans for all calls to `require` function and p
code to be available at runtime. But, dynamically loaded (by figwheel) code bypass this scan
and therefore require of custom component fails.
To overcome this execute command:
To overcome this execute `use-component` command:
```
$ re-natal use-component some-library/Component
```
or for platform-specific lib use optional platform parameter:
```
$ re-natal use-component some-library/ComponentIOS ios"
```
Then, regenerate index.\*.js files:
```
$ re-natal use-figwheel