react-native
react-native copied to clipboard
ToastAndroid has no respond
render() {
return (
<View style={{flex: 1, justifyContent: "center", alignItems: "center"}}>
<TouchableNativeFeedback
onPress={() => {
ToastAndroid.show('pressing', ToastAndroid.SHORT);
}}
background={TouchableNativeFeedback.SelectableBackground()}>
<View>
<Text>Click me</Text>
</View>
</TouchableNativeFeedback>
<TextInput onChangeText={(value)=>{
ToastAndroid.showWithGravity('altering', ToastAndroid.SHORT, ToastAndroid.TOP);
this.setState({
value: value,
});
}}/>
</View>
);
}
it doesn't work when I alter text or press
Maybe someone could help me, thanks.
Can not reproduce it on the master branch.

Hey @micsay, can you share what error you face, Because the code you shared is working

Closing as "cannot reproduce".
@micsay did you solve your issue? I have the same.
EDIT: Please forget it, I had the notification settings turned off on my device.