-
-
Notifications
You must be signed in to change notification settings - Fork 153
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
Using with react-native-navigation #34
Comments
Hi @moneymc, Could you follow the solution exposed in this other issues? TL;DR: You have to put the "above" de navigators, like this demo here: https://snack.expo.io/Hy7Y01Yc7 |
All of your links reference |
Oh I'm sorry @tyleralves, I didn't get it at first, but now I see that you using other lib instead. I've never used this lib before ( |
@tyleralves hi, just add: Navigation.showOverlay({
component: {
name: 'app.topBarFlashMessages',
passProps: {},
options: {
overlay: {
interceptTouchOutside: false,
},
layout: {
backgroundColor: 'transparent',
orientation: ['portrait'],
},
},
},
}) and register component: Navigation.registerComponent('app.topBarFlashMessages', () => TopFlashMessages) Component: const styles = StyleSheet.create({
container: {
height: 50,
width: wp('100%'),
},
})
const TopFlashMessages= () => {
return (
<View style={styles.container}>
<FlashMessage position="top" />
</View>
)
} |
FYI it wasn't working for me on the first time you called
|
for newer versions of react-native-flash-message use componentBackgroundColor instead of backgroundColor |
When i use it with RNN it's looks like this:
How i implement:
The text was updated successfully, but these errors were encountered: