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

Popup is not closing itself

Open DavitVosk opened this issue 9 years ago • 2 comments

I see this package doesn't have any features, which will allow the popup to disapperar after, for instance, 3 sec. If there is, then please point me. Thanks in advance

DavitVosk avatar May 11 '17 20:05 DavitVosk

I also want to know ...

mmatheusmmiguel avatar May 21 '17 18:05 mmatheusmmiguel

@DavitVosk Uou can do something like this:

<View style={styles.container}>
  <Button
    text="Close"
    onPress={() => {
      this.popupDialog.dismiss();
    }}
  />
  <PopupDialog
    ref={(popupDialog) => { this.popupDialog = popupDialog; }}
  >
    <View>
      <Text>Hello</Text>
    </View>
  </PopupDialog>
</View>

jacklam718 avatar May 25 '17 16:05 jacklam718