The problem I am having is that when I have a react-native-material-dropdown open, and the login session times out (will navigate to another screen), the dropdown from the previous screen remains open.
Image showing the dropdown remains focused on next screen even though the component is no longer mounted:
componentWillUnmount does get called but the dropdowns do not get closed upon screen navigation. If anyone has any ideas on how to troubleshoot this, please let me know.
The problem I am having is that when I have a react-native-material-dropdown open, and the login session times out (will navigate to another screen), the dropdown from the previous screen remains open.
Image showing the dropdown remains focused on next screen even though the component is no longer mounted:
I am using React refs to close the dropdowns:
componentWillUnmount does get called but the dropdowns do not get closed upon screen navigation. If anyone has any ideas on how to troubleshoot this, please let me know.
Thanks