We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have this problem on android
here is my MainApplication
`package com.splash;
import android.app.Application;
import com.facebook.react.ReactApplication; import com.cboy.rn.splashscreen.SplashScreenReactPackage; import com.facebook.react.ReactNativeHost; import com.facebook.react.ReactPackage; import com.facebook.react.shell.MainReactPackage; import com.facebook.soloader.SoLoader;
import java.util.Arrays; import java.util.List;
public class MainApplication extends Application implements ReactApplication {
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { @OverRide public boolean getUseDeveloperSupport() { return BuildConfig.DEBUG; }
@Override protected List<ReactPackage> getPackages() { return Arrays.<ReactPackage>asList( new MainReactPackage(), new SplashScreenReactPackage() //here ); }
};
@OverRide public ReactNativeHost getReactNativeHost() { return mReactNativeHost; }
@OverRide public void onCreate() { super.onCreate(); SoLoader.init(this, /* native exopackage */ false); } } My MainActivityimport android.os.Bundle; import com.facebook.react.ReactActivity; import com.cboy.rn.splashscreen.SplashScreen;
My MainActivity
public class MainActivity extends ReactActivity {
@Override protected void onCreate(Bundle savedInstanceState) { SplashScreen.show(this); // here super.onCreate(savedInstanceState); } @Override protected String getMainComponentName() { return "Splash"; }
} `
If i comment SplashScreen.show(this) my app started correctly
The text was updated successfully, but these errors were encountered:
#52
Sorry, something went wrong.
No branches or pull requests
I have this problem on android
here is my MainApplication
`package com.splash;
import android.app.Application;
import com.facebook.react.ReactApplication;
import com.cboy.rn.splashscreen.SplashScreenReactPackage;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
import com.facebook.react.shell.MainReactPackage;
import com.facebook.soloader.SoLoader;
import java.util.Arrays;
import java.util.List;
public class MainApplication extends Application implements ReactApplication {
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
@OverRide
public boolean getUseDeveloperSupport() {
return BuildConfig.DEBUG;
}
};
@OverRide
public ReactNativeHost getReactNativeHost() {
return mReactNativeHost;
}
@OverRide
public void onCreate() {
super.onCreate();
SoLoader.init(this, /* native exopackage */ false);
}
}
My MainActivity
import android.os.Bundle;import com.facebook.react.ReactActivity;
import com.cboy.rn.splashscreen.SplashScreen;
public class MainActivity extends ReactActivity {
}
`
If i comment SplashScreen.show(this) my app started correctly
The text was updated successfully, but these errors were encountered: