react-native icon indicating copy to clipboard operation
react-native copied to clipboard

ToastAndroid has no respond

Open micsay opened this issue 10 years ago • 5 comments

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

micsay avatar Sep 13 '16 00:09 micsay

Maybe someone could help me, thanks.

micsay avatar Sep 13 '16 00:09 micsay

Can not reproduce it on the master branch.

image

leeight avatar Sep 13 '16 01:09 leeight

Hey @micsay, can you share what error you face, Because the code you shared is working screenshot_2016-09-28-16-09-24 screenshot_2016-09-28-16-09-34

Anuj-786 avatar Sep 28 '16 10:09 Anuj-786

Closing as "cannot reproduce".

lacker avatar Feb 07 '17 21:02 lacker

@micsay did you solve your issue? I have the same.

EDIT: Please forget it, I had the notification settings turned off on my device.

aMarCruz avatar Jul 01 '18 04:07 aMarCruz