jamesisaac / react-native-background-task

Periodic background tasks for React Native apps, cross-platform (iOS and Android), which run even when the app is closed.
MIT License
1.11k stars 110 forks source link

onCreate function doesn't exist in MainAppliction.java #47

Closed JulianKingman closed 4 years ago

JulianKingman commented 6 years ago

This is probably because I'm using expokit, but there is no onCreate function in MainApplication.java. Ideas?

renatoaloi-tbf commented 5 years ago

Neither here. I created it, like this

@Override
    public void onCreate() {
        super.onCreate();
        BackgroundTaskPackage.useContext(this);
    }