Last active
          July 28, 2019 21:12 
        
      - 
      
- 
        Save adhithiravi/e35ae58a1ddcc2b95e65b3bdd899ca6c to your computer and use it in GitHub Desktop. 
Revisions
- 
        adhithiravi revised this gist Sep 30, 2018 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,7 +6,8 @@ import { TouchableHighlight, View, NativeModules } from 'react-native'; import TouchID from 'react-native-touch-id' class FingerPrint extends React.Component { 
- 
        adhithiravi revised this gist Sep 19, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class FingerPrint extends React.Component { title: "Authentication Required", // Android color: "#e00606", // Android, fallbackLabel: "Show Passcode" // iOS (if empty, then label is hidden) } pressHandler() { TouchID.authenticate('to demo this react-native component', optionalConfigObject) 
- 
        adhithiravi revised this gist Sep 19, 2018 . 1 changed file with 7 additions and 0 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,6 +10,13 @@ import { import TouchID from 'react-native-touch-id' class FingerPrint extends React.Component { //config is optional to be passed in on Android const optionalConfigObject = { title: "Authentication Required", // Android color: "#e00606", // Android, fallbackLabel: "Show Passcode" // iOS (if empty, then label is hidden) } pressHandler() { TouchID.authenticate('to demo this react-native component', optionalConfigObject) 
- 
        adhithiravi revised this gist Sep 19, 2018 . No changes.There are no files selected for viewing
- 
        adhithiravi renamed this gist Sep 19, 2018 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewingFile renamed without changes.
- 
        adhithiravi created this gist Sep 19, 2018 .There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,35 @@ import React, { Component } from 'react'; import { AlertIOS, StyleSheet, Text, TouchableHighlight, View, NativeModules } import TouchID from 'react-native-touch-id' class FingerPrint extends React.Component { pressHandler() { TouchID.authenticate('to demo this react-native component', optionalConfigObject) .then(success => { AlertIOS.alert('Authenticated Successfully'); }) .catch(error => { AlertIOS.alert('Authentication Failed'); }); } render() { return ( <View> <TouchableHighlight onPress={this.pressHandler}> <Text> Authenticate with Touch ID </Text> </TouchableHighlight> </View> ); } };