Skip to content
New issue

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

Android crash on load splash screen #30

Open
DeDuckProject opened this issue Oct 29, 2016 · 2 comments
Open

Android crash on load splash screen #30

DeDuckProject opened this issue Oct 29, 2016 · 2 comments

Comments

@DeDuckProject
Copy link

Hi
I get this error on android (RN version 0.30.0)
screenshot 2016-10-29 23 44 38

This happens because I invoke the call to

new RCTSplashScreenPackage(MainActivity.activity)

before calling

    @Override
    protected String getMainComponentName() {
        activity = this;
        return "app";
    }

so MainActivity.activity is null.

Anyone experiencing this as well?

@pikusinski
Copy link

pikusinski commented Nov 3, 2016

Yes I'm having the exact same issue.
EDIT
@DeDuckProject after reading through some issues, you should check out this repository which is supposed to be a fork (which works) of this repository. Hope it helps!

@DeDuckProject
Copy link
Author

@pikusinski Thanks, I've seen your reply only now. have you tried it? Does it work as expected?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants