From 850732eef0fb38dca871b3b2c864288aad2a9fdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BAlio=20C=C3=A9sar=20Mussi?= Date: Tue, 10 Sep 2019 08:41:15 -0300 Subject: [PATCH] fix(readme): Fixed deprecated AlertIOS --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); }); }