Provide a guide, how to show modal outside React components (e.g. inside redux middleware)
+1 same time , the HTTP response need to show alert same time , the socket received need to show alert
@boboxiaodd For now you can handle it inside component. Just pass redux state into your component and handle it
@inferusvv i don't know how to use redux, i use DeviceEventEmitter in my homeScreen to send and receive to show alert
const modal = useModals(); global.modal = modal
Put the modal into the global variable so that it can be used in the task place
const modal = useModals(); global.modal = modal
Put the modal into the global variable so that it can be used in the task place
It will work, but it is anti-pattern, in my opinion :)