How to use the react-native-router-flux.Actions.push function in react-native-router-flux

To help you get started, we’ve selected a few react-native-router-flux 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 HenryQuan / WoWs-Info-Re / WoWsInfo / src / core / util / SafeAction.js View on Github external
export const SafeAction = (screen, obj, max = 0) => {
  if (Actions.state.routes.filter(r => r.routeName === screen).length > max) {
    console.log(`${screen} rejected`);
  } else {
    Actions.push(screen, obj);
    console.log(`${screen} pushed`);
  }
};
github rastapasta / foodsharing / src / sagas / deeplink.tsx View on Github external
export default function* deeplinkSaga() {
  const linking = yield call(initLinkingWatcher)

  while (true) {
    const action = yield take(linking)
        , url = action.payload

    yield put(action)

    if (url.startsWith('share?'))
      Actions.push('offerBasket', {picture: {uri: url.split(/share\?/)[1]}})

    if (url.startsWith('essenskoerbe'))
      Actions.push('basket', {id: parseInt(url.split(/essenskoerbe\//)[1])})
  }
}
github venits / react-native-login-template / App / LogSignScreen / LogSignScreen.js View on Github external
moveToMainAppScreen = () => {
    Actions.push('testMainAppScreen');
  };
github rastapasta / foodsharing / src / scenes / BasketEdit.tsx View on Github external
            onPress={() => Actions.push('locationSelector', {
              callback: ({latitude, longitude}) => this.setState({latitude, longitude}),
              location: {latitude, longitude}
            })}
            testID="basketEdit.map"
github bitbat-io / ethereum-light-wallet-android / src / Components / Wallet-Card / walletCard.component.js View on Github external
sendEther = () => {
        Actions.push(ETHER_AMOUNT_SCENE, { wallet: this.props.payload });
    }
github rastapasta / foodsharing / src / scenes / Router.tsx View on Github external
                onPress={() => Actions.push('offerBasket')}
              />
github rastapasta / foodsharing / src / scenes / Baskets.tsx View on Github external
              onPress={() => Actions.push('basket', {id: item.id})}
              style={styles.item}
github bitbat-io / ethereum-light-wallet-android / src / Scene / Create-Wallet-Name-Input-Scene / createWalletNameInput.scene.js View on Github external
navigateToNextScene = () => {
        Keyboard.dismiss();
        const slot = {
            walletName: this.state.walletName,
        }
        Actions.push(CREATE_WALLET_DISPLAY_PASSPHRASE, { slot })
    }
    render() {
github bitbat-io / ethereum-light-wallet-android / src / Scene / Ether-Amount-Scene / enterAmount.scene.js View on Github external
navigateToNextScene = () => {
        Keyboard.dismiss();
        const slot = {
            amount: this.state.amount,
        }
        Actions.push(SCAN_QR_SCENE, { slot });
    }