title: How to implement face recognition authentication in React-native?
body: <p>I am new in react native. I want to implement face id and touch id authentication in my app. In my app touch id is working. But face id is not working. my code for face id authentication is below : </p>
  
  <pre><code> callFinger(isLogin) {
      TouchID.isSupported()
          .then(biometryType =&gt; {
  
              if (biometryType === 'TouchID') {
  
                  TouchID.authenticate('Unlock with your fingerprint').then(success =&gt; {
                      if (success) {
                          if (isLogin == "true")
                              this.callRedirect(isLogin);
                          else
                              this.callLoginApi();
                      }
                  }
                  );
              } else if (biometryType === 'FaceID') {
                   TouchID.authenticate('Unlock with your FaceID').then(success =&gt; {
                      if (success) {
                          if (isLogin == "true")
                              this.callRedirect(isLogin);
                          else
                              this.callLoginApi();
                      }
                  }
                  );
              } else if (biometryType === true) {
  
                  TouchID.authenticate('Unlock with your fingerprint').then(success =&gt; {
                      if (success) {
                          if (isLogin == "true")
                              this.callRedirect(isLogin);
                          else
                              this.callLoginApi();
                      }
                  }
                  );
              }
              else {
                  this.callRedirect(isLogin);
              }
          })
          .catch(error =&gt; {
              this.callRedirect(isLogin);
          })
  
  }
  </code></pre>
  
  <p>I am using this link for touch Id and it's work for me. but in this link face id code not working. <a href="https://www.npmjs.com/package/react-native-touch-id" rel="nofollow noreferrer">https://www.npmjs.com/package/react-native-touch-id</a> </p>
  
  <p>I also refere below link but it's also not working.
  <a href="https://github.com/naoufal/react-native-touch-id/blob/master/examples/BiometricAuthExample/App.js" rel="nofollow noreferrer">https://github.com/naoufal/react-native-touch-id/blob/master/examples/BiometricAuthExample/App.js</a></p>