$ npm install --save react-native-bg-thread
1. Add pod 'react-native-bg-thread', :path => '../node_modules/react-native-bg-thread/react-native-bg-thread.podspec' to your pod file under targets
Run following commands
2. cd ios
3. pod install
No further action needed
import RnBgTask from 'react-native-bg-thread';
componentDidMount(){
RnBgTask.runInBackground(()=>{
// your js code here
})
}