diff --git a/README.md b/README.md index 62987128..be012d5e 100644 --- a/README.md +++ b/README.md @@ -122,7 +122,7 @@ In your `Info.plist`: ```javascript import React, { Component } from 'react'; import PropTypes from 'prop-types'; -import { AlertIOS } from 'react-native'; +import { Alert } from 'react-native'; import FingerprintScanner from 'react-native-fingerprint-scanner'; class FingerprintPopup extends Component { @@ -132,11 +132,11 @@ class FingerprintPopup extends Component { .authenticate({ description: 'Scan your fingerprint on the device scanner to continue' }) .then(() => { this.props.handlePopupDismissed(); - AlertIOS.alert('Authenticated successfully'); + Alert.alert('Authenticated successfully'); }) .catch((error) => { this.props.handlePopupDismissed(); - AlertIOS.alert(error.message); + Alert.alert(error.message); }); }