Bladeren bron

un nuevo comienzo

Orlando04 2 jaren geleden
bovenliggende
commit
4f81ee61ac
2 gewijzigde bestanden met toevoegingen van 4 en 3 verwijderingen
  1. 3
    2
      MocionesIUPI/screens/MocionScreen.js
  2. 1
    1
      MocionesIUPI/screens/PincodeScreen.js

+ 3
- 2
MocionesIUPI/screens/MocionScreen.js Bestand weergeven

@@ -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
 };

+ 1
- 1
MocionesIUPI/screens/PincodeScreen.js Bestand weergeven

@@ -47,7 +47,7 @@ export default class App extends React.Component {
47 47
           </View>
48 48
           
49 49
           <View style={globalStyles.container}>
50
-            { pincode && <Button title='Ir a mocion' onPress={this.pressHandler} />}
50
+            { pincode && <Button title='Ir a mocion' color = {'#e81b39'} onPress={this.pressHandler} />}
51 51
           </View>
52 52
 
53 53
         </View>