react-native-threads
react-native-threads copied to clipboard
Error: Unable to resolve module `./worker.thread` from ``:
I try to create two file worker.thread.js with same content.
- 1 file same folder with App.js
- 1 file same folder with process data file (processData.js)
I call: const thread = new Thread('./worker.thread.js');
from processData.js, but it show error Unable to resolve module ./worker.thread
.
Please help me.
same here
in release ipa, u can try this thread js bundle resolver
For anyone else who runs into this, in dev mode bundler only picks up js files in project root. So just do new Thread("../worker.js")
.
same here
I have my index.thread.js
in the top level of the project (with the package.json
), and just run new Thread('index.thread.js')