-
Notifications
You must be signed in to change notification settings - Fork 30
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
Problem with react-navigation and width of the alert #15
Comments
Hi @marceloHashzen! If you put I just added an example app directory to this repo. Check that out for reference. Let me know if you continue to have issues. |
Hello @gnestor, thank you very much for the help. I've used the second situation (StatusBar outside the navigation screen), with the container View with flex: 1, it's working wonderfully. |
I haven't used this component with Android, but the purpose of |
@marceloHashzen Check out the <View style={styles.container}>
<StatusBar />
<StatusBarAlert
visible={this.state.alert}
message="Alert!"
backgroundColor="#3CC29E"
color="white"
style={styles.alert}
onPress={this.toggleAlert}
>
{this.state.customAlert}
</StatusBarAlert>
<MyStackNavigation />
</View> |
Awesome @gnestor! Will try by the end of the week, but the alert is already working here on iOS and Android! |
Hi, is there any tip to use this alert with the returned navigator from react-navigation, so it appears on all screens? Or is it possible to manually set the width of the alert (if I try to insert the alert inside a view in the returned component, the width is just the width of the text inside the alert)?
Some screenshots:
In this situation I'm putting the alert inside de Login screen, so I would have to put inside every other screen, but the width is delimited by the text width:
In this situation, I'm putting the alert with the navigation that is returned, but in android all the screen got blank and on iOS everything is squished in the top:
The text was updated successfully, but these errors were encountered: