jasongaare / react-native-walkthrough-tooltip

An inline wrapper for calling out React Native components via tooltip
MIT License
610 stars 182 forks source link

Unable to close the Tootip in 'background' and 'inactive' state #168

Open romeshyadav007 opened 1 year ago

romeshyadav007 commented 1 year ago

Tooltip is working fine in the active state, but we need to close the tooltip when the app enters Background or Inactive state. We applied the appstate listener in RN and tried to toggle 'isVisible' prop of the tooltip. It results in the following error on iOS:-

Presenting view controller <RCTModalHostViewController: 0x13a421820> from detached view controller <RNSScreen: 0x1311a22b0> is discouraged.

In addition, app hangs and becomes unresponsive.

Let us know if you need any more information.