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

Not seeing any toast.

Open quantumpotato opened this issue 5 years ago • 3 comments

  return (
      <KeyboardAvoidingView
        style={styles.wrapper}
        enabled
        keyboardVerticalOffset={100}>
        <ScrollView contentContainerStyle={styles.container}>
          <Toast ref="toast" />
                 <BigButton
            buttonText="tap here!"
            onPress={this.showmytoast}
          />
        </ScrollView>
      </KeyboardAvoidingView>
    )
  }

showmytoast = () => {
this.refs.toast.show("Hello world", 500)

quantumpotato avatar Apr 20 '19 15:04 quantumpotato

@quantumpotato hi. Possibly, your toast appeared behind the keyboard. I don't know how to solve this issue. I just face this issue and wonder how to fix it.

AlexRAV avatar Apr 29 '19 08:04 AlexRAV

you can hide keyboard before making the toast appear.Maybe it can work

hrithik2322 avatar Dec 11 '19 10:12 hrithik2322

you can hide keyboard before making the toast appear.Maybe it can work

Or you can set the position of Toast to top. e.g. position: 'top'

rajeshgajraj avatar Jan 08 '20 09:01 rajeshgajraj