From 28789ef44b20b87f925b3c091100fb41d904c7c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BAlio=20C=C3=A9sar=20Mussi?= Date: Tue, 10 Sep 2019 14:03:33 -0300 Subject: [PATCH 1/4] fix(readme): Fixed deprecated AlertIOS --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 62987128..6e1fb058 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); }); } @@ -158,7 +158,9 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { - Alert, + + + , Image, Text, TouchableOpacity, From 18c62989ff617d163c2f0b320c7bdc9c982d59c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BAlio=20C=C3=A9sar=20Mussi?= Date: Tue, 10 Sep 2019 14:04:36 -0300 Subject: [PATCH 2/4] fix(readme): Fixed deprecated AlertIOS --- examples/src/FingerprintPopup.component.ios.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/src/FingerprintPopup.component.ios.js b/examples/src/FingerprintPopup.component.ios.js index a0c5bc38..0b1c2691 100644 --- a/examples/src/FingerprintPopup.component.ios.js +++ b/examples/src/FingerprintPopup.component.ios.js @@ -1,6 +1,6 @@ import PropTypes from 'prop-types'; import React, { Component } from 'react'; -import { AlertIOS } from 'react-native'; +import { Alert } from 'react-native'; import FingerprintScanner from 'react-native-fingerprint-scanner'; class FingerprintPopup extends Component { @@ -10,11 +10,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); }); } From 00001efde78dc558d30be8604824305219ed302e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BAlio=20C=C3=A9sar=20Mussi?= Date: Tue, 10 Sep 2019 14:08:54 -0300 Subject: [PATCH 3/4] fix(readme): Fixed deprecated AlertIOS --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6e1fb058..58ae9dcc 100644 --- a/README.md +++ b/README.md @@ -277,11 +277,11 @@ componentDidMount() { .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); }); } ``` From 27af64f9968d1f422e77ef2e76eaf5aec63b0c8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BAlio=20C=C3=A9sar=20Mussi?= Date: Tue, 10 Sep 2019 14:13:10 -0300 Subject: [PATCH 4/4] fix(FingerprintPopup.component.ios.js): Fixed deprecated AlertIOS Fixed wrong commit message. Commiting from github due to time issues, sorry --- examples/src/FingerprintPopup.component.ios.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/src/FingerprintPopup.component.ios.js b/examples/src/FingerprintPopup.component.ios.js index 0b1c2691..bf700f39 100644 --- a/examples/src/FingerprintPopup.component.ios.js +++ b/examples/src/FingerprintPopup.component.ios.js @@ -1,6 +1,6 @@ import PropTypes from 'prop-types'; import React, { Component } from 'react'; -import { Alert } from 'react-native'; +import {Alert} from 'react-native'; import FingerprintScanner from 'react-native-fingerprint-scanner'; class FingerprintPopup extends Component {