How to use the react-native-router-flux.Actions.pop 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 crownstone / CrownstoneApp / js / views / settingsViews / SettingsSphere.tsx View on Github external
.then(() => {
                this.props.eventBus.emit('hideLoading');
                this.deleting = true;
                Actions.pop();

                let state = this.props.store.getState();
                let actions = [];
                if (state.app.activeSphere === this.props.sphereId)
                  actions.push({type:"CLEAR_ACTIVE_SPHERE"});

                actions.push({type:'REMOVE_SPHERE', sphereId: this.props.sphereId});

                // stop tracking sphere.
                Bluenet.stopTrackingIBeacon(state.spheres[this.props.sphereId].config.iBeaconUUID);
                this.props.store.batchDispatch(actions);
              })
          }
github 7kfpun / FinanceReactNative / app / views / settings / index.js View on Github external
onActionSelected(position) {
    if (position === 0) {  // index of 'Add'
      Actions.add();
    } else if (position === 1) {  // index of 'Done'
      Actions.pop();
    }
  }
github rastapasta / foodsharing / src / sagas / basket.tsx View on Github external
function* deleteBasketWatcher() {
  while (true) {
    // Wait until we get a delete request
    const { payload: id } = yield take([BASKET_DELETE_REQUEST])
    try {
      // Fetch and return it
      yield deleteBasket(id)
      yield put({type: BASKET_DELETE_SUCCESS, payload: id})

      // And leave the scene of action
      Actions.pop()
    } catch(e) {/* Errors are handled via Redux reducers */}
  }
}
github mbeaudru / react-native-sample / src / containers / TakePicture.js View on Github external
.then(({ path: avatar }) => {
        const user = _.merge({}, this.props.user, { avatar });
        this.props.updateUser(user);
        Actions.pop();
      })
      .catch(err => console.error(err));
github EdgeApp / edge-login-ui / src / web / modules / SignUp.rn.js View on Github external
BackAndroid.addEventListener('hardwareBackPress', function () {
      if (this.props.loader.loading === true) {
        return true
      }
      switch (self.props.scene) {
        case 'username':
          self.props.dispatch(fadeWhiteOverlay())
          Actions.pop()
          break
        default:
          Actions.pop()
      }
      return true
    })
  }
github easemob / webim-react-native / App / Containers / ContactInfoScreen.js View on Github external
setBlock(props) {
    const {uid, names, rosterNames} = props
    let isBlocked = names.indexOf(uid) !== -1
    this.setState({
      isBlocked
    })

    if (rosterNames.indexOf(uid) === -1) {
      NavigationActions.pop()
    }
  }
github sibelius / react-native-redux-saga / app / containers / HomeScreen.js View on Github external
handler: () =>  {
        this.props.logout();
        Actions.pop();
      }
    };