Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
react-native-threads
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
冷佳娟
react-native-threads
Commits
cabcd141
Commit
cabcd141
authored
Feb 02, 2018
by
Craig Coles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates docs to include info about folder structure
parent
4a7d911a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
README.md
README.md
+8
-1
No files found.
README.md
View file @
cabcd141
...
@@ -138,6 +138,14 @@ of your app. This documentation assumes you have a single thread file called
...
@@ -138,6 +138,14 @@ of your app. This documentation assumes you have a single thread file called
`index.thread.js`
in your project root. If your file is named differently or in
`index.thread.js`
in your project root. If your file is named differently or in
a different location, you can update the documented commands accordingly.
a different location, you can update the documented commands accordingly.
*Note*
: If your single thread file is in a different location, the folder structure needs to
be replicated under
`./ios`
and
`./android/app/src/main/assets/threads`
.
```
./App/Workers/worker.thread.js => ./ios/App/Workers/worker.thread.jsbundle
./App/Workers/worker.thread.js => ./android/app/src/main/assets/threads/App/Workers/worker.thread.jsbundle
```
For iOS you can use the following command:
For iOS you can use the following command:
`node node_modules/react-native/local-cli/cli.js bundle --dev false --assets-dest ./ios --entry-file index.thread.js --platform ios --bundle-output ./ios/index.thread.jsbundle`
`node node_modules/react-native/local-cli/cli.js bundle --dev false --assets-dest ./ios --entry-file index.thread.js --platform ios --bundle-output ./ios/index.thread.jsbundle`
...
@@ -180,4 +188,3 @@ and feature-rich to me. At the time of this writing neither library was functio
...
@@ -180,4 +188,3 @@ and feature-rich to me. At the time of this writing neither library was functio
on the latest version of react native, and neither seemed to be very actively maintained.
on the latest version of react native, and neither seemed to be very actively maintained.
This library would not exist without those two reference implementations to guide me!
This library would not exist without those two reference implementations to guide me!
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment