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

Only the original thread that created a view hierarchy can touch its views. #54

Closed
sibelius opened this issue Sep 4, 2017 · 10 comments
Closed

Comments

@sibelius
Copy link

sibelius commented Sep 4, 2017

react-native 48.1
rn-splash-screen 5.0.0

error here

https://github.com/mehcode/rn-splash-screen/blob/master/android/src/main/java/com/mehcode/reactnative/splashscreen/SplashScreen.java#L53

@ricardofbarros
Copy link

Having the same problem

@ronal2do
Copy link

  • 1

@mehcode
Copy link
Owner

mehcode commented Sep 12, 2017

Merged #53 and released as v5.2

@mehcode mehcode closed this as completed Sep 12, 2017
@ricardofbarros
Copy link

thank you @mehcode

@ronal2do
Copy link

@mehcode Thanks

@sinapcs
Copy link

sinapcs commented Oct 4, 2017

Hi I have this problem on rn-splash-screen v5.2 and react-native 48.4
I guess you should open this issue again.

@yasicmd
Copy link

yasicmd commented Oct 11, 2017

@sinapcs Yeah me too in 0.48.0

@sinapcs
Copy link

sinapcs commented Oct 12, 2017

@yasicmd I solved the problem. The project I'm working on it was using previous versions of rn-splash-screen and it had some extra codes in MainActivity.java

// After react is initialized; set our background color (override splash screen theme)
        getReactNativeHost().getReactInstanceManager().addReactInstanceEventListener(new ReactInstanceManager.ReactInstanceEventListener() {
            @Override
            public void onReactContextInitialized(ReactContext context) {
                // Hide the native splash screen
                getWindow().getDecorView().setBackgroundColor(Color.WHITE);
            }
        });

I removed this code and problem solved

@yasicmd
Copy link

yasicmd commented Oct 13, 2017

@sinapcs Worked for me. thanks for the reply.

@joshuapinter
Copy link

For others that might be landing here, my solution was related to having the "Perf Monitor" enabled, as per facebook/react-native#16042 (comment). Try toggling off the Perf Monitor and see if it solves the issue.

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

7 participants