Parcourir la source

changed styles of the buttons

Orlando04 il y a 2 ans
Parent
révision
997aec6aa9

+ 3
- 3
MocionesIUPI/screens/HomeScreen.js Voir le fichier

@@ -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.0.0.66:5000/send?PIN=121071'); // connection to the website 
12
+        const response = await fetch('http://192.168.1.200: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', {Pin:PIN},)
26
+        navigation.navigate('Pinpage', {Pin:PIN},) // with this we send parameters to other screens
27 27
     }
28 28
     
29 29
     useEffect(() => {
@@ -33,7 +33,7 @@ export default App = ({ navigation }) => {
33 33
     return (
34 34
         <View style = {globalStyles.container}>
35 35
             <Text style = {globalStyles.tittleText}>Home Screen</Text>
36
-            <Button title='Ir a pagina de pin' onPress={pressHandler} />
36
+            <Button title='Ir a pagina de pin' color={'#e81b39'} onPress={pressHandler} />
37 37
         </View>
38 38
 
39 39
         

+ 3
- 2
MocionesIUPI/screens/MocionScreen.js Voir le fichier

@@ -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 Voir le fichier

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