You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 4, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+52-6Lines changed: 52 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,9 +3,9 @@
3
3
Spin worker threads and run CPU intensive tasks in the background. Bonus point on Android you can keep a worker alive even when a user quit the application :fireworks:
4
4
5
5
## Features
6
-
- JS workers run on both iOS and Android
7
-
- access all native modules from the workers (network, geolocation, async storage ...)
8
-
-write your Android Services in JS :tada:
6
+
- JS workers for iOS and Android
7
+
- access to native modules (network, geolocation, storage ...)
8
+
- Android Services in JS :tada:
9
9
10
10
## Warning
11
11
This plugin is still in beta and some features are missing. Current restrictions include:
1. Open your project in XCode, right click on Libraries and click Add Files to "Your Project Name". Look under node_modules/react-native-workers/ios and add `Workers.xcodeproj`.
27
-
2. Add `libWorkers.a` to `Build Phases -> Link Binary With Libraries.
26
+
1. Open your project in XCode, right click on Libraries and click Add Files to "Your Project Name". Look under node_modules/react-native-workers/ios and add `Workers.xcodeproj`
27
+
2. Add `libWorkers.a` to `Build Phases -> Link Binary With Libraries`
28
28
29
-
## API
29
+
### Android
30
+
31
+
in `android/settings.gradle`
32
+
33
+
```
34
+
include ':app', ':react-native-workers'
35
+
project(':react-native-workers').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-workers/android')
0 commit comments