How to use the react-native-navigation.Navigation.dismissAllModals 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 wix / react-native-navigation / playground / src / screens / ComplexLayout.js View on Github external
onSideMenuLayoutInsideBottomTabPressed = () => {
    Navigation.dismissAllModals();
    Navigation.setRoot({
      root: {
        bottomTabs: {
          children: [
            {
              stack: {
                children: [
                  {
                    component: {
                      name: 'navigation.playground.TextScreen',
                      options: {
                        topBar: {
                          animate: false
                        }
                      }
                    }
github uport-project / uport-mobile / lib / sagas / requests / index.js View on Github external
export function* handleClearRequest() {
  yield put(updateBadgeCount())
  Navigation.dismissAllModals()
}
github uport-project / uport-mobile / lib / screens / Scanner.tsx View on Github external
popAndroidScannerView() {
    Navigation.dismissAllModals()
  }
github crownstone / CrownstoneApp / js / util / NavigationUtil.ts View on Github external
dismissAllModals: function() {
    addSentryLog("dismissAllModals", "null");
    LOGi.nav("Closing all modals");
    Navigation.dismissAllModals();
    NavState.allModalsDismissed();
  },
github wix / react-native-navigation / playground / src / services / Navigation.js View on Github external
const dismissAllModals = () => Navigation.dismissAllModals();
github raindropio / mobile / src / modules / navigation / index.js View on Github external
async dismissAllModals() {
        try{
            return await Navigation.dismissAllModals()
        } catch(e) {
            return false
        }
    },
github bnankiewicz / organic / src / screens / sources / WebDavSource.tsx View on Github external
const handleAddSource = useCallback(() => {
    if (!pingResult) return
    const {content, stat} = pingResult
    dispatch(sourcesActions.addSource.request({
      source,
      stat,
      content
    }))
    Keyboard.dismiss()
    Navigation.dismissAllModals()
  }, [pingResult])
github wix-playground / react-native-navigation-v1-v2-adapter / navigatorBridge.js View on Github external
dismissAllModals() {
      Navigation.dismissAllModals();
    },
    setButtons(buttons) {
github zzorba / ArkhamCards / components / DeckDetailView / index.tsx View on Github external
onPress: () => {
            Navigation.dismissAllModals();
          },
        }, {
github forest-watcher / forest-watcher / app / components / home / index.js View on Github external
handleStatus() {
    const { loggedIn, hasAreas, isAppSynced, componentId, actionsPending, setAppSynced, syncApp } = this.props;

    if (loggedIn) {
      if (isAppSynced) {
        if (this.syncModalOpen) {
          Navigation.dismissAllModals();
        }
        if (!hasAreas) {
          Navigation.setStackRoot(componentId, {
            component: {
              name: 'ForestWatcher.SetupCountry',
              passProps: {
                goBackDisabled: true
              }
            }
          });
        } else {
          Navigation.setStackRoot(componentId, {
            component: {
              name: 'ForestWatcher.Dashboard'
            }
          });