I got a problem.
I create a notification system in my react-native app to unify the design on Android and iOS.
So I implement the system in App.js
and directly in RootContainer
like that :
App.js
render () {
return (
<Provider store={context.store}>
<RootContainer />
</Provider>
)
}
RootContainer
render() {
return (
<StyleProvider style={getTheme(material)}>
<View style={styles.applicationView}>
<NotificationToast
message={this.props.infoNotif}
onTimeOut={() => this.props.initialDeleteInfoNotif()}
/>
<StatusBar barStyle='light-content' />
<ReduxNavigation />
</View>
</StyleProvider>
)
}
So, the NotificationToast
is my notification system. He will find this.props.infoNotif
from my Redux.
In iOS, everything work perfectly, but on Android, anything happens.
And I don’t know why.