Pārlūkot izejas kodu

un nuevo comienzo

Ricardo-gonzalez32 2 gadus atpakaļ
vecāks
revīzija
d02a1aa1aa

+ 1
- 1
MocionesIUPI/screens/MocionScreen.js Parādīt failu

11
       // this connects us to the API and fetches the json file with the mociones
11
       // this connects us to the API and fetches the json file with the mociones
12
       const getMociones = async () => {
12
       const getMociones = async () => {
13
         try {
13
         try {
14
-         const response = await fetch('http://10.190.1.140:5000/send?PIN=121071'); // connection to the website 
14
+         const response = await fetch('http://10.0.0.66:5000/send?PIN=121071'); // connection to the website 
15
          const json = await response.json();
15
          const json = await response.json();
16
    
16
    
17
          // setting the content of each category 
17
          // setting the content of each category 

+ 3
- 2
MocionesIUPI/screens/PincodeScreen.js Parādīt failu

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