Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating Web Worker in React Native Android app

Tags:

react-native

I am building a React Native android app. In app I want to download and parse huge amount of data from server. Since JavaScript is a single threaded language I don't want to execute this on same React Native JSC context. Is it possible to create a Web Worker inside React Native JSC context and do extensive background jobs?

I have tried to do the same, but it says function not available.

like image 733
Simply Innovative Avatar asked Mar 04 '16 10:03

Simply Innovative


1 Answers

There is a library exactly for that now. Check out https://github.com/devfd/react-native-workers

like image 159
fgarci03 Avatar answered Oct 21 '22 15:10

fgarci03