How to use the react-native-navigation.Navigation.dismissOverlay function in react-native-navigation

To help you get started, we’ve selected a few react-native-navigation examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mattermost / mattermost-mobile / app / actions / navigation / index.js View on Github external
export async function dismissOverlay(componentId) {
    try {
        await Navigation.dismissOverlay(componentId);
    } catch (error) {
        // RNN returns a promise rejection if there is no modal with
        // this componentId to dismiss. We'll do nothing in this case.
    }
}
github RN-ONE / RNFrameWorkNew / app / util / NavigationUtil.js View on Github external
static disMissOverLayOrModal(componentName) {
        if (CommonUtil.isAndroid()) {
            Navigation.dismissOverlay(componentName)
                .then((result) => {
                    console.log({result});
                }).catch((error) => {
                console.log({error});
            });
        } else {
            Navigation.dismissModal(componentName)
                .then((result) => {
                    console.log({result});
                }).catch((error) => {
                console.log({error});
            });
        }
    }
github wix / react-native-navigation / playground / src / services / Navigation.js View on Github external
const dismissOverlay = (name) => Navigation.dismissOverlay(name);
github NordicMuseum / Nordic-Museum-Audio-Guide / v2 / src / actions / audio.js View on Github external
return async (dispatch, getState) => {
    const state = getState();

    audioActor().unloadAudio();

    if (state.bottomPlayer.playerOpen) {
      Navigation.dismissOverlay('bottomPlayer');
    }

    dispatch({
      type: PLAYER_STATUS_UNLOADED,
    });
  };
}
github wix / react-native-navigation / playground / src / screens / Alert.js View on Github external
onCLickOk() {
    Navigation.dismissOverlay(this.props.componentId);
  }
}
github zzorba / ArkhamCards / components / CardSortDialog / index.tsx View on Github external
_handleBackPress = () => {
    Navigation.dismissOverlay(this.props.componentId);
    return true;
  };