Actually i am working on multiple modal at once so i have to make a condition that if my modal with "xyz" ref is close then display a button.
Question posted in React native
The official React Native documentation can be found here.
The official React Native documentation can be found here.
2
Answers
You should make a custom component with a modal in it, so every modal has its own state – isOpen. Then in your custom modal component, you can show something or not, based on your isOpen property.
react-native-modalize
hasonOpen
andonClose
props which will allow you to set some state to keep track of then open/closed status of each modal. You can then use that state to control the rendering of your buttons.Example on Expo Snack.