diff --git a/reactNativeTouchSensor/example/TouchExample/index.android.js b/reactNativeTouchSensor/example/TouchExample/index.android.js deleted file mode 100644 index bcc06ff..0000000 --- a/reactNativeTouchSensor/example/TouchExample/index.android.js +++ /dev/null @@ -1,103 +0,0 @@ -/** - * Sample React Native App - * https://github.com/facebook/react-native - * @flow - */ - -import React, { Component } from 'react' -import { - AppRegistry, - StyleSheet, - View, - Text, - Button -} from 'react-native' - -import Touch from 'react-native-touch-sensor' - -export default class TouchExample extends Component { - - - _isSupported() { - Touch.isSupported() - .then( () => alert('Android fingerprint supported')) - .catch( (error) => alert(`unsupported: ${error}`)) - } - _hasPermission() { - Touch.hasPermissions() - .then( () => alert('Permissions accepted')) - .catch( (error) => alert(`unsupported: ${error}`)) - } - - _hardwareSupported() { - Touch.hardwareSupported() - .then( () => alert('Hardware supports it')) - .catch( (error) => alert(`unsupported: ${error}`)) - } - - _hasFingerprints() { - Touch.hasFingerprints() - .then( () => alert('User Has fingerprints')) - .catch( (error) => alert(`no fingerprints: ${error}`)) - } - - _authenticatePressed() { - Touch.authenticate("To test out the app") - .then( () => alert('authenticated') ) - .catch( (error) => alert(`Failed: ${error}`) ) - } - - - render() { - return ( - - Check to see if all conditions are met to use Fingerprint -