How to use the react-native-navigation.Navigation.mergeOptions 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 d14na / zeronet-explorer / src / frames / Startup.js View on Github external
_initZite(_target, _path) {
        // FIXME If the tag is NOT an address then we need to do a
        //       ZeroName lookup to retrieve the address
        const address = _target;

        // FIXME Handle the path
        // const path = _path;

        /* Set the zite address. */
        stores.Stage.initZite(address);

        /* Open the stage window. */
        Navigation.mergeOptions('zeronet.Stage', {
            sideMenu: {
                left: {
                    visible: true,
                },
            },
        });
    }
}
github birkir / hekla / src / screens / account / Voted.tsx View on Github external
updateOptions() {
    Navigation.mergeOptions(this.props.componentId, AccountVotedScreen.options);
  }
github uport-project / uport-mobile / lib / screens / Profile.tsx View on Github external
setLegacyModeButtons() {
    Navigation.mergeOptions(this.props.componentId, {
      topBar: {
        rightButtons: [],
      },
    })
  }
github wix / react-native-navigation / playground / src / screens / WelcomeScreen.js View on Github external
onClickProvidedId = () => {
    Navigation.showModal({
      stack: {
        children: [
          {
            component: {
              name: 'navigation.playground.TextScreen',
              id: 'my unique id'
            }
          }
        ]
      }
    });
    Navigation.mergeOptions('my unique id', {
      topBar: {
        title: {
          text: 'User provided id'
        }
      }
    });
  }
github zzorba / ArkhamCards / components / CardImageView / index.tsx View on Github external
const doubleCard: boolean = !!props.card && (
      props.card.double_sided ||
      !!(props.card.linked_card && props.card.linked_card.imagesrc)
    );

    this.state = {
      flipped: !!props.card && (
        props.card.type_code === 'investigator' ||
        props.card.type_code === 'act' ||
        props.card.type_code === 'agenda' ||
        (doubleCard && !!props.card.hidden)),
    };

    if (doubleCard) {
      Navigation.mergeOptions(props.componentId, {
        topBar: {
          rightButtons: [{
            id: 'flip',
            icon: iconsMap.flip_card,
            color: COLORS.navButton,
            testID: t`Flip Card`,
          }],
        },
      });
    }
    this._navEventListener = Navigation.events().bindComponent(this);
  }
github wix / react-native-navigation / playground / src / services / Navigation.js View on Github external
const mergeOptions = (selfOrCompId, options) => Navigation.mergeOptions(compId(selfOrCompId), options);
github wix / react-native-ui-lib / demo / src / screens / MainScreen.js View on Github external
toggleTopBar = shouldShow => {
    Navigation.mergeOptions(this.props.componentId, {
      topBar: {
        visible: shouldShow,
        animate: true,
      },
    });
  };
github wix / react-native-navigation / playground / src / screens / TextScreen.js View on Github external
toggleTabBarVisibility(componentId, visible) {
    Navigation.mergeOptions(componentId, {
      bottomTabs: {
        visible,
        drawBehind: true,
        animate: true
      }
    });
  }
github uport-project / uport-mobile / lib / screens / Profile.tsx View on Github external
setDefaultButtons() {
    Navigation.mergeOptions(this.props.componentId, {
      topBar: {
        rightButtons: [
          {
            id: 'edit',
            text: 'Edit',
          },
        ],
      },
    })
  }
github birkir / kvikmyndr-app / src / screens / coming-soon / ComingSoon.tsx View on Github external
navigationButtonPressed({ buttonId }: { buttonId: string }) {
    if (buttonId === 'ICON_MENU') {
      Navigation.mergeOptions(Store.menuComponentId, {
        sideMenu: {
          left: {
            visible: true,
          },
        },
      });
    }
  }