react-native-workers icon indicating copy to clipboard operation
react-native-workers copied to clipboard

Has anyone got this working?

Open rickcha opened this issue 8 years ago • 3 comments

Spent my whole day trying to print a single log in the listener.. but no luck.

I couldn't also make the example project code to work either, other than displaying a number increment in the message "Should not freeze: {number}".

Need someone to tell me whether it worked or not.

rickcha avatar Oct 23 '17 23:10 rickcha

Got it working on Android.

Had to apply the Android setup changes manually after react-native link rn-workers, fix one compilation error on Android Studio (there was a wrong override) and then run the bundle-worker-android script from the npm scripts.

I hope that helps.

bamboo avatar Oct 29 '17 14:10 bamboo

I did all that already. My whole react team worked on it. It never prints out a single log. Would you share me some code that works?

rickcha avatar Oct 29 '17 17:10 rickcha

Hi @rickcha, I don't have anything I can publish but I've also found this other library that might work for you if Android is all you need:

https://github.com/staltz/react-native-node

I haven't tried but it looks simple to setup.

Cheers!

bamboo avatar Oct 30 '17 18:10 bamboo