How to use the react-native-navigation.Navigation.showOverlay 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 RN-ONE / RNFrameWorkNew / app / util / NavigationUtil.js View on Github external
static showOverLayOrModal(componentName, param) {
        if (CommonUtil.isAndroid()) {
            Navigation.showOverlay(NavigationUtil.getRNNOverlayOrModal(componentName, param))
                .then((result) => {
                    console.log({result});
                }).catch((error) => {
                console.log({error});
            });
        } else {
            Navigation.showModal(NavigationUtil.getRNNOverlayOrModal(componentName, param))
                .then((result) => {
                    console.log({result});
                }).catch((error) => {
                console.log({error});
            });
        }
    }
github zzorba / ArkhamCards / components / campaign / NewCampaignView / index.tsx View on Github external
_showDifficultyDialog = () => {
    Navigation.showOverlay({
      component: {
        name: 'Dialog.CampaignDifficulty',
        passProps: {
          difficulty: this.state.difficulty,
          updateDifficulty: this._updateDifficulty,
        },
        options: {
          layout: {
            backgroundColor: 'rgba(128,128,128,.75)',
          },
        },
      },
    });
  };
github crownstone / CrownstoneApp / js / util / NavigationUtil.ts View on Github external
showOverlay(target, props) {
    addSentryLog("showOverlay", target);
    LOGi.nav("I WANT TO SHOW THIS OVERLAY", target);

    LOGi.nav("is this overlay open?", target, NavState.isThisOverlayOpen(target));

    if (NavState.isThisOverlayOpen(target)) {
      return;
    }

    NavState.showOverlay(target);

    LOGi.nav("WILL SHOW NOW", target);
    Navigation.showOverlay({
      component: {
        id: target,
        name: target,
        passProps: props,
        options: {
          overlay: {
            interceptTouchOutside: true,
            handleKeyboardEvents: true,
          }
        }
      },
    })
  },
github BelkaLab / react-native-declarative-ui / src / navigation / integration.ts View on Github external
export function showAutocompleteOverlay(passProps: IAutocompletePickerOverlayProps) {
  try {
    Navigation.showOverlay({
      component: {
        name: AUTOCOMPLETE_PICKER_OVERLAY_KEY,
        passProps: {
          ...passProps,
          canExtendFullScreen: true,
          hasTextInput: true,
          minHeight: 350
        },
        options: {
          overlay: {
            interceptTouchOutside: false
          },
          layout: {
            backgroundColor: 'transparent'
          }
        }
github wix / react-native-navigation / playground / src / screens / WelcomeScreen.js View on Github external
onClickShowStaticLifecycleOverlay = () => {
    Navigation.showOverlay({
      component: {
        name: 'navigation.playground.StaticLifecycleOverlay',
        options: {
          overlay: {
            interceptTouchOutside: false
          }
        }
      }
    });
  }
github wix / react-native-navigation / playground / src / app.js View on Github external
alert = (title) => {
    Navigation.showOverlay({
      component: {
        name: Screens.Alert,
        passProps: {
          title
        },
        options: {
          layout: {
            componentBackgroundColor: 'transparent'
          },
          overlay: {
            interceptTouchOutside: true
          }
        }
      }
    });
  };
github jeremybarbet / react-native-modalize / examples / react-native-navigation / src / screens / modal / Modal.tsx View on Github external
const onPress = (component: React.ReactNode) => {
    /*
     * To avoid creating multiple screens for each modal,
     * I just pass the modal content as a props to the
     * Modalize screen
     */
    Navigation.showOverlay({
      component: {
        name: MODALIZE,
        passProps: { component },
        options: { overlay: { interceptTouchOutside: false } },
      },
    });
  };
github NordicMuseum / Nordic-Museum-Audio-Guide / v2 / src / actions / audio.js View on Github external
let nextUUID = null;
    if (activeAudioIndex + 1 < audioContent.length) {
      nextUUID = audioContent[activeAudioIndex + 1].uuid;
    }

    try {
      const { duration } = await audioActor().loadAudio({
        audioID: activeAudio.id,
        audioUUID: activeAudio.uuid,
        playAudioAfterLoad,
        autoPlay,
      });

      if (state.bottomPlayer.playerOpen === false) {
        Navigation.showOverlay({
          component: {
            id: 'bottomPlayer',
            name: 'bottomPlayer',
            options: {
              overlay: {
                interceptTouchOutside: false,
              },
            },
          },
        });
      }

      dispatch(
        loadAudioSuccess(
          tourStop,
          tourStop.uuid,
github jeremybarbet / react-native-modalize / examples / react-native-navigation / src / screens / App.js View on Github external
const handleOverlay = name => {
    Navigation.showOverlay({
      component: {
        name,
        options: { overlay: { interceptTouchOutside: true } },
      },
    });
  };
github BelkaLab / react-native-declarative-ui / src / navigation / integration.ts View on Github external
export function showDurationOverlay(passProps: IDurationPickerOverlayProps) {
  try {
    Navigation.showOverlay({
      component: {
        name: DURATION_PICKER_OVERLAY_KEY,
        passProps: {
          ...passProps,
          disabledInteraction: Platform.OS === 'android'
        },
        options: {
          overlay: {
            interceptTouchOutside: false
          },
          layout: {
            backgroundColor: 'transparent'
          }
        }
      }
    });