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
I had to manually install as automatic would never run. however i eventually got it running and have placed breakpoints in XCode and confirm that postmessage is being called but the said message never reaches my worker.thread.js
I also had to specify an absolute path for it to work like so
@vishalnarkhede@Genhain
When the callback gets called from listeningDeviceEventEmitter.addListener('ThreadMessage', (message) => {
Doing a console of self it seems that onmessage is null thats why Im assuming self.onmessage is never called { onmessage: null, postMessage: [Function: postMessage] }
// main// start a new react native JS processconstthread=newThread('thread.js');// send a message, strings onlythread.postMessage('run');// thread// listen for messagesself.onmessage=(message)=>{console.log(message);};
However, no message is received in the Thread.js.
My react-native version: 0.63.2
I had to manually install as automatic would never run. however i eventually got it running and have placed breakpoints in XCode and confirm that
postmessage
is being called but the said message never reaches myworker.thread.js
I also had to specify an absolute path for it to work like so
otherwise it would say the file did not exist.
and here is my worker thread.js
The text was updated successfully, but these errors were encountered: