How to use the react-native-navigation.Navigation.showModal 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 crownstone / CrownstoneApp / js / util / NavigationUtil.ts View on Github external
launchModal: function(target, props = {}) {
    addSentryLog("launchModal", target);
    LOGi.nav("Navigating from", NavState.activeView, "to", target, props);
    NavState.expectModal(target);
    // NavState.modalActive();
    Navigation.showModal({
      stack:{
        children: [
          { component: { name: target, passProps: props }}
        ]
      }
    })
  },
github zzorba / ArkhamCards / components / campaign / CampaignChaosBagView / index.tsx View on Github external
_handleSealTokensPressed = () => {
    const {
      campaignId,
    } = this.props;
    const passProps: SealTokenDialogProps = {
      campaignId: campaignId,
    };
    Navigation.showModal({
      stack: {
        children: [{
          component: {
            name: 'Dialog.SealToken',
            passProps,
          },
        }],
      },
    });
  };
github birkir / hekla / src / screens / index.ts View on Github external
export const replyScreen = (itemId: string, edit: boolean = false) => Navigation.showModal({
  stack: {
    children: [
      {
        component: {
          name: REPLY_SCREEN,
          passProps: {
            itemId,
            edit,
          },
        },
      },
    ],
  },
});
github uport-project / uport-mobile / lib / screens / Profile.tsx View on Github external
showQRCode() {
    const url = `https://id.uport.me/req/${this.props.shareToken}`

    Navigation.showModal({
      component: {
        name: SCREENS.ProfileQRCode,
        passProps: {
          url,
          title: this.props.name,
          onClose: Navigation.dismissModal,
          componentId: this.props.componentId,
        },
        options: {
          topBar: {
            visible: false,
          },
        },
      },
    })
  }
github zzorba / ArkhamCards / components / campaign / DeckList.tsx View on Github external
_showDeckSelector = () => {
    const {
      deckIds,
      deckAdded,
      campaignId,
    } = this.props;
    if (deckAdded) {
      const passProps: MyDecksSelectorProps = {
        campaignId: campaignId,
        onDeckSelect: deckAdded,
        selectedDeckIds: deckIds,
      };
      Navigation.showModal({
        stack: {
          children: [{
            component: {
              name: 'Dialog.DeckSelector',
              passProps,
            },
          }],
        },
      });
    }
  };
github uport-project / uport-mobile / lib / screens / Account.js View on Github external
showModal() {
    Navigation.showModal({
      component: {
        name: SCREENS.AccountFunding,
        passProps: {
          address: this.props.address,
          accountProfile: this.props.accountProfile,
        },
      },
    })
  }
github zzorba / ArkhamCards / components / MyDecksView.tsx View on Github external
showNewDeckDialog() {
    Navigation.showModal({
      stack: {
        children: [{
          component: {
            name: 'Deck.New',
          },
        }],
      },
    });
  }
github Bit-Nation / BITNATION-Pangea-mobile / src / modules / dapps / dapps-sagas / renderModal.js View on Github external
export function* handleRequest(request: DAppModalInfo): Generator<*, *, *> {
  const { modalID } = request;

  const { dApps: { modals } } = yield select();
  const screenRegistered = modals[modalID] != null;
  yield put(storeDAppModal(request));
  if (screenRegistered === false) {
    Navigation.showModal({
      ...screen('DAPP_MODAL_SCREEN'),
      passProps: {
        modalID,
      },
    });
  }
}
github wix / react-native-navigation / playground / src / screens / BackHandlerScreen.js View on Github external
showModalWitchStack() {
    Navigation.showModal({
      stack: {
        children: [
          {
            component: {
              name: 'navigation.playground.BackHandlerModalScreen'
            }
          },
          {
            component: {
              name: 'navigation.playground.BackHandlerModalScreen'
            }
          }
        ]
      }
    });
  }
github demokratie-live / democracy-client / index.js View on Github external
startBetaEnd = () => {
    Navigation.showModal({
      screen: 'democracy.BetaEnd',
      navigatorStyle: {
        navBarHidden: true,
      },
      animationType: 'fade',
      appStyle: {
        orientation: 'portrait',
      },
    });
  };