devfd / react-native-workers

Background services and web workers for react-native
BSD 2-Clause "Simplified" License
804 stars 89 forks source link

Background worker is always loading, it doesn't execute. #18

Open senthilsivanath opened 8 years ago

senthilsivanath commented 8 years ago

Using react-native-workers: ^0.3.1, react-native: ^0.34.1

When i start my worker in componentDidMount. The script gets downloaded, but it doesnt get executed on device.

screen shot 2016-10-11 at 11 16 04 pm

I am using debug mode and Loading from ip.xip.io:port always remains in status bar.

Could observe following in perf monitor.

image

senthilsivanath commented 8 years ago

Interference from Realm React Native cause this effect.

Have put dirty workaround in RealmReact.mm for continuing.

bourgois commented 8 years ago

@senthilsivanath Can you share your workaround? We are using Realm too and considering using workers...