Ricardo-gonzalez32 2 роки тому
джерело
коміт
d02a1aa1aa

+ 1
- 1
MocionesIUPI/screens/MocionScreen.js Переглянути файл

@@ -11,7 +11,7 @@ export default App = () => {
11 11
       // this connects us to the API and fetches the json file with the mociones
12 12
       const getMociones = async () => {
13 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 15
          const json = await response.json();
16 16
    
17 17
          // setting the content of each category 

+ 3
- 2
MocionesIUPI/screens/PincodeScreen.js Переглянути файл

@@ -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 {