-
Notifications
You must be signed in to change notification settings - Fork 140
White screen on initial yarn ios #1
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
Comments
I assume you're referring to Step 4 from this guide: The white screen blank issue comes from the code for if (loading) {
return (
<></>
)
} I think the author (cc @mrcflorian) made a mistake here, and did not mean to include this QUICK FIX:If you've completed Step 4, and don't see the UI with the login/registration screens, then you should update // if (loading) {
// return (
// <></>
// )
// } RECOMMENDED FIX:@mrcflorian Would you mind fixing Step 3 of the tutorial? |
Thanks for taking a look guys. @harrytruong is right. I've just updated the tutorial. |
Damn @mrcflorian, that was a crazy fast response, haha. Thank you for the very quick update! (I'm pointing my intern to your tutorial to help them learn React Native, and it's been very helpful so far.) If you have time, I think you might want to review your tutorial one more time:
|
I've updated the loading thing again, to reflect the right order. |
Yeah, but it's conditionally rendered based on the { user ? (
<Stack.Screen name="Home">
{props => <HomeScreen {...props} extraData={user} />}
</Stack.Screen>
) : (
<>
<Stack.Screen name="Login" component={LoginScreen} />
<Stack.Screen name="Registration" component={RegistrationScreen} />
</>
)} @mrcflorian I might be wrong, but it seems like without (It all works properly by the end of Step 7, when |
Thank you both very much for looking at this issue! I'n new to React Native, so I'll continue to follow this thread to see a complete resolution. |
The registration remains broken even after Step 7. Just remove the user from Firebase console and try to sign up again. You will get the same navigation error and after a reload you get to home screen because of the persistent login. Because of the conditional render 'Home' screen won't exist simultaneously with 'Login' and 'Registration' and thus the navigator cant find 'Home' when called from 'Login' or 'Registration.' Edit: Here is a way to move from login to home without using NAVIGATE: https://reactnavigation.org/docs/auth-flow |
Step 4 Implement the UI in the accompanying guide leads to a white screen blank expo app on iOS simulator when login and registration should be showing up.
The text was updated successfully, but these errors were encountered: