react-native-modals
react-native-modals copied to clipboard
Popup is not closing itself
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
I also want to know ...
@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>