mirror of
https://github.com/status-im/re-natal.git
synced 2025-01-14 14:45:18 +00:00
update usage of use-component command in README
This commit is contained in:
parent
9562b5926d
commit
b7193e120b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user