Sfoglia il codice sorgente

increased pincode length to 6

Ricardo-gonzalez32 2 anni fa
parent
commit
05fe05b4f2
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2
    1
      MocionesIUPI/screens/PincodeScreen.js

+ 2
- 1
MocionesIUPI/screens/PincodeScreen.js Vedi File

@@ -3,7 +3,7 @@ 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 = 1234;
6
+const pin = 123456;
7 7
 
8 8
 //comentario
9 9
 
@@ -40,6 +40,7 @@ export default class App extends React.Component {
40 40
             <SmoothPinCodeInput
41 41
               ref={this.pinInput}
42 42
               value={code}
43
+              codeLength={6}
43 44
               onTextChange={code => this.setState({ code })}
44 45
               onFulfill={this._checkCode}
45 46
               onBackspace={() => console.log('No more back.')}