|
@@ -9,7 +9,7 @@ export default App = ({ navigation }) => {
|
9
|
9
|
// this connects us to the API and fetches the json file with the mociones
|
10
|
10
|
const getMociones = async () => {
|
11
|
11
|
try {
|
12
|
|
- const response = await fetch('http://10.190.1.140:5000/send?PIN=121071'); // connection to the website
|
|
12
|
+ const response = await fetch('http://10.0.0.66:5000/send?PIN=121071'); // connection to the website
|
13
|
13
|
const json = await response.json();
|
14
|
14
|
|
15
|
15
|
// setting the content of each category
|
|
@@ -23,7 +23,7 @@ export default App = ({ navigation }) => {
|
23
|
23
|
}
|
24
|
24
|
|
25
|
25
|
const pressHandler = () => {
|
26
|
|
- navigation.navigate('Pinpage')
|
|
26
|
+ navigation.navigate('Pinpage', {Pin:PIN},)
|
27
|
27
|
}
|
28
|
28
|
|
29
|
29
|
useEffect(() => {
|
|
@@ -35,6 +35,7 @@ export default App = ({ navigation }) => {
|
35
|
35
|
<Text style = {globalStyles.tittleText}>Home Screen</Text>
|
36
|
36
|
<Button title='Ir a pagina de pin' onPress={pressHandler} />
|
37
|
37
|
</View>
|
|
38
|
+
|
38
|
39
|
|
39
|
40
|
|
40
|
41
|
|