onShow

The onShow prop allows passing a function that will be called once the modal has been shown.

<Modal
animationType="slide"
transparent={true}
visible={modalVisible}
onShow ={() =>{this.yourFunctionName()}>
</Modal>
Advertisements

Leave a Reply