How to use the react-native-navigation.Navigation.pop 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 / Player0ne.js View on Github external
_close() {
        Navigation.pop(this.props.componentId);
        // Navigation.dismissModal(this.props.componentId);
    }
github zzorba / ArkhamCards / components / campaign / AddScenarioResultView / index.tsx View on Github external
if (showDeckUpgrade) {
        Navigation.showModal({
          stack: {
            children: [{
              component: {
                name: 'Campaign.UpgradeDecks',
                passProps,
              },
            }],
          },
        });
        setTimeout(() => {
          Navigation.pop(componentId);
        }, 1500);
      } else {
        Navigation.pop(componentId);
      }
    }
  }
github zzorba / ArkhamCards / components / weakness / NewWeaknessSetDialog.js View on Github external
onSavePressed() {
    const {
      componentId,
      createWeaknessSet,
      nextId,
    } = this.props;

    const {
      name,
      packs,
    } = this.state;
    createWeaknessSet(nextId, name, packs);
    Navigation.pop(componentId);
  }
github oktadeveloper / okta-react-native-spring-boot-example / react-native-app / App / modules / entities / blood-pressure / blood-pressure-entity-detail-screen.js View on Github external
componentWillReceiveProps (newProps) {
    if (newProps.bloodPressure) {
      this.setState({ bloodPressure: newProps.bloodPressure })
    }

    if (this.state.deleting && newProps.deleting === false) {
      if (!newProps.errorDeleting) {
        this.props.getAllBloodPressures()
        Navigation.pop(this.props.componentId)
      } else {
        Alert.alert('Error', 'Something went wrong deleting the entity', [{text: 'OK'}])
        this.setState({
          success: false,
          requesting: false
        })
      }
    }
  }
github oktadeveloper / okta-react-native-spring-boot-example / react-native-app / App / modules / entities / blood-pressure / blood-pressure-entity-edit-screen.js View on Github external
} else {
        this.props.getAllBloodPressures({page: 0, sort: 'id,asc', size: 20})
        const entityId = newProps.bloodPressure.id
        const alertOptions = [{ text: 'OK' }]
        if (!this.state.formValue.id) {
          alertOptions.push({
            text: 'View',
            onPress: bloodPressureEntityDetailScreen.bind(this, { entityId })
          })
        }
        this.setState({
          success: true,
          requesting: false,
          formValue: { id: null }
        })
        Navigation.pop(this.props.componentId)
        Alert.alert('Success', 'Entity saved successfully', alertOptions)
      }
    }
  }
github esteemapp / esteem-mobile / src / screens / singlePost / screen / singlePostScreen.js View on Github external
BackHandler.addEventListener('hardwareBackPress', () => {
      Navigation.pop(this.props.componentId);
      return true;
    });
  }
github birkir / kvikmyndr-app / src / screens / movie / Movie.tsx View on Github external
onHardwareBackPress() {
    Navigation.pop(this.props.componentId);
    return true;
  }
github zzorba / ArkhamCards / components / DeckDetailView / CardUpgradeDialog / index.tsx View on Github external
navigationButtonPressed({ buttonId }: { buttonId: string }) {
    const {
      componentId,
    } = this.props;
    if (buttonId === 'back') {
      Navigation.pop(componentId);
    }
  }
github wix / react-native-navigation / playground / src / screens / PushedScreen.js View on Github external
async onClickPop() {
    await Navigation.pop(this.props.componentId);
  }
github zzorba / ArkhamCards / components / filter / withFilterFunctions.tsx View on Github external
navigationButtonPressed({ buttonId }: { buttonId: string }) {
      const {
        clearFilters,
        filterId,
      } = this.props;
      if (buttonId === 'clear') {
        clearFilters(filterId, clearTraits);
      } else if (buttonId === 'apply') {
        Navigation.pop(this.props.componentId);
      }
    }