title: react-native-fingerprint-scanner is not working
body: <p>I have to implement fingerprint Authentication in my app , so i have installed react-native-fingerprint-scanner but the code is not working as i am getting this error</p>
  
  <p><a href="https://i.stack.imgur.com/yJrfz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yJrfz.png" alt="enter image description here"></a></p>
  
  <p>Here is my code</p>
  
  <pre><code>import React, { Component, PropTypes } from 'react';
  import {
    Alert,
    Image,
    Text,
    TouchableOpacity,
    View,
    ViewPropTypes,
    StyleSheet
  } from 'react-native';
  import FingerprintScanner from 'react-native-fingerprint-scanner';
  import ShakingText from './ShakingText';
  
  class FingerprintPopup extends Component {
    constructor(props) {
      super(props);
      this.state = { errorMessage: undefined };
    }
  
    componentDidMount() {
      FingerprintScanner
        .authenticate({ onAttempt: this.handleAuthenticationAttempted })
        .then(() =&gt; {
          this.props.handlePopupDismissed();
          Alert.alert('Fingerprint Authentication', 'Authenticated successfully');
        })
        .catch((error) =&gt; {
          this.setState({ errorMessage: error.message });
          this.description.shake();
        });
    }
  
    componentWillUnmount() {
      FingerprintScanner.release();
    }
  
    handleAuthenticationAttempted = (error) =&gt; {
      this.setState({ errorMessage: error.message });
      this.description.shake();
    };
  
    render() {
      const { errorMessage } = this.state;
      const { style, handlePopupDismissed } = this.props;
  
      return (
        &lt;View style={styles.container}&gt;
          &lt;View style={[styles.contentContainer, style]}&gt;
  
            &lt;Image
              style={styles.logo}
              source={require('../assets/finger_print.png')}
            /&gt;
  
            &lt;Text style={styles.heading}&gt;
              Fingerprint{'\n'}Authentication
            &lt;/Text&gt;
            &lt;ShakingText
              ref={(instance) =&gt; { this.description = instance; }}
              style={styles.description(!!errorMessage)}&gt;
              {errorMessage || 'Scan your fingerprint on the\ndevice scanner to continue'}
            &lt;/ShakingText&gt;
  
            &lt;TouchableOpacity
              style={styles.buttonContainer}
              onPress={handlePopupDismissed}
            &gt;
              &lt;Text style={styles.buttonText}&gt;
                BACK TO MAIN
              &lt;/Text&gt;
            &lt;/TouchableOpacity&gt;
  
          &lt;/View&gt;
        &lt;/View&gt;
      );
    }
  }
  
  FingerprintPopup.propTypes = {
    style: ViewPropTypes.style,
    handlePopupDismissed: PropTypes.func.isRequired,
  };
  
  const styles = StyleSheet.create({
    container: {
      position: 'absolute',
      top: 0,
      bottom: 0,
      left: 0,
      right: 0,
      backgroundColor: 'rgba(0, 164, 222, 0.9)',
      flexDirection: 'column',
      justifyContent: 'center',
      alignItems: 'center',
    },
    contentContainer: {
      flexDirection: 'column',
      justifyContent: 'center',
      alignItems: 'center',
      backgroundColor: '#ffffff',
    },
    logo: {
      marginVertical: 45,
    },
    heading: {
      textAlign: 'center',
      color: '#00a4de',
      fontSize: 21,
    },
    description: (error) =&gt; ({
      textAlign: 'center',
      color: error ? '#ea3d13' : '#a5a5a5',
      height: 65,
      fontSize: 18,
      marginVertical: 10,
      marginHorizontal: 20,
    }),
    buttonContainer: {
      padding: 20,
    },
    buttonText: {
      color: '#8fbc5a',
      fontSize: 15,
      fontWeight: 'bold',
    },
  });
  export default FingerprintPopup;
  </code></pre>
  
  <p>I am getting this error react.PropTypes.oneOfType ,I am not sure where it is going wrong .</p>
  
  <p>Please help me how to solve this.</p>