|
@@ -3,7 +3,8 @@ import { StyleSheet, View, Text, Button } from 'react-native';
|
3
|
3
|
import { globalStyles } from "../styles/global";
|
4
|
4
|
import SmoothPinCodeInput from 'react-native-smooth-pincode-input';
|
5
|
5
|
|
6
|
|
-const pin = 123456;
|
|
6
|
+
|
|
7
|
+
|
7
|
8
|
|
8
|
9
|
export default class App extends React.Component {
|
9
|
10
|
|
|
@@ -19,7 +20,7 @@ export default class App extends React.Component {
|
19
|
20
|
pinInput = React.createRef();
|
20
|
21
|
|
21
|
22
|
_checkCode = (code) => {
|
22
|
|
- if (code != pin) {
|
|
23
|
+ if (code != this.props.navigation.state.params.Pin) {
|
23
|
24
|
this.pinInput.current.shake()
|
24
|
25
|
.then(() => this.setState({ code: '' }));
|
25
|
26
|
} else {
|