Пример #1
0
 _touchID = () => {
   TouchID.authenticate('Unlock GENE')
   .then(success => {
     this.props.enterGene();
   })
   .catch(error => {
     console.log('touch id error');
   });
 };
Пример #2
0
function authenticate() {
  return TouchID.authenticate()
    .then(success => {
      //Redirect to login if TouchID not supported
      Actions.Login();
    })
    .catch(error => {
      console.log(error)
      AlertIOS.alert(error.message);
    });
}
Пример #3
0
  _touchID = () => {
    TouchID.authenticate('Unlock Day19')
    .then(success => {
      this.setState({
        enterApp: true,
      })
    })
    .catch(error => {

    });
  };