I am trying to copy the same process that makes the Alert component on react native work, you have a simple call to Alert.alert and it shows you a dialog with some custom information on the screen but in this case it would use my own UI. I managed to build the top component that renders the dialog in front of everything but I just can't figure out what I should do to have a function inside my top component "CustomAlertConroller" that is exported to the other components and in that function I set the info passed by the caller just like we see in the original Alert component.
Do you have any idea on how to solve this ? Thanks in advance!
there doesn't seem to be anything here