react-native-background-task icon indicating copy to clipboard operation
react-native-background-task copied to clipboard

you need to call create() at least once to create the singleton

Open mojtabadarzi opened this issue 5 years ago • 1 comments

mojtabadarzi avatar Apr 15 '20 07:04 mojtabadarzi

Add this in your MainApplication.java

import com.jamesisaac.rnbackgroundtask.BackgroundTaskPackage;

And in your onCreate() method add this line

BackgroundTaskPackage.useContext(this); 

hadpro24 avatar May 24 '20 01:05 hadpro24