Skip to content
This repository was archived by the owner on Sep 4, 2021. It is now read-only.

Commit 8fb54da

Browse files
author
devfd
committed
update readme
1 parent 97b2fca commit 8fb54da

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
7373

7474
```
7575

76+
**Note**: only the official react native modules are available from your workers (vibration, fetch, etc...). To include additional modules in your workers add them to the WorkerPackage constructor. Like this:
77+
78+
```java
79+
new WorkerPackage(new MyAwesomePackage(), new MyAmazingPackage())`
80+
```
81+
7682
## JS API
7783

7884
From your application:
@@ -116,7 +122,7 @@ self.postMessage("hello from worker");
116122
## Todo
117123

118124
- [x] Android - download worker files from same location as main bundle
119-
- [ ] iOS - download worker files from same location as main bundle
125+
- [x] iOS - download worker files from same location as main bundle
120126
- [ ] script to package worker files for release build
121-
- [ ] load worker files from disk if not debug
127+
- [x] load worker files from disk if not debug
122128

0 commit comments

Comments
 (0)