|
@@ -1,5 +1,5 @@
|
1
|
1
|
import React, { useEffect, useState } from 'react';
|
2
|
|
-import { ActivityIndicator, FlatList, Text, TouchableOpacity, View } from 'react-native';
|
|
2
|
+import { ActivityIndicator, Button, FlatList, Text, TouchableOpacity, View } from 'react-native';
|
3
|
3
|
import { globalStyles } from '../styles/global';
|
4
|
4
|
import Card from '../shared/card';
|
5
|
5
|
|
|
@@ -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.0.0.66:5000/send?PIN=121071'); // connection to the website
|
|
14
|
+ const response = await fetch('http://192.168.1.200: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
|
|
@@ -35,6 +35,7 @@ export default App = () => {
|
35
|
35
|
|
36
|
36
|
<Text>{Mocion}</Text>
|
37
|
37
|
<Text>{Description}</Text>
|
|
38
|
+ <Button title= 'A favor' color={'#e81b39'} />
|
38
|
39
|
</View>
|
39
|
40
|
);
|
40
|
41
|
};
|