Orlando04 2 лет назад
Родитель
Сommit
86e20f6f7a
1 измененных файлов: 1 добавлений и 1 удалений
  1. 1
    1
      MocionesIUPI/screens/PincodeScreen.js

+ 1
- 1
MocionesIUPI/screens/PincodeScreen.js Просмотреть файл

20
     pinInput = React.createRef();
20
     pinInput = React.createRef();
21
   
21
   
22
     _checkCode = (code) => {
22
     _checkCode = (code) => {
23
-      if (code != this.props.navigation.state.params.Pin) {
23
+      if (code != this.props.navigation.state.params.Pin) { //this is for recieving the parameters from another screen
24
         this.pinInput.current.shake()
24
         this.pinInput.current.shake()
25
           .then(() => this.setState({ code: '' }));
25
           .then(() => this.setState({ code: '' }));
26
       } else {
26
       } else {