소스 검색

un nuevo comienzo

Orlando04 2 년 전
부모
커밋
4f81ee61ac
2개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 3
    2
      MocionesIUPI/screens/MocionScreen.js
  2. 1
    1
      MocionesIUPI/screens/PincodeScreen.js

+ 3
- 2
MocionesIUPI/screens/MocionScreen.js 파일 보기

1
 import React, { useEffect, useState } from 'react';
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
 import { globalStyles } from '../styles/global';
3
 import { globalStyles } from '../styles/global';
4
 import Card from '../shared/card';
4
 import Card from '../shared/card';
5
 
5
 
11
       // this connects us to the API and fetches the json file with the mociones
11
       // this connects us to the API and fetches the json file with the mociones
12
       const getMociones = async () => {
12
       const getMociones = async () => {
13
         try {
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
          const json = await response.json();
15
          const json = await response.json();
16
    
16
    
17
          // setting the content of each category 
17
          // setting the content of each category 
35
 
35
 
36
       <Text>{Mocion}</Text>
36
       <Text>{Mocion}</Text>
37
       <Text>{Description}</Text>
37
       <Text>{Description}</Text>
38
+      <Button title= 'A favor' color={'#e81b39'} />
38
     </View>
39
     </View>
39
   );
40
   );
40
 };
41
 };

+ 1
- 1
MocionesIUPI/screens/PincodeScreen.js 파일 보기

47
           </View>
47
           </View>
48
           
48
           
49
           <View style={globalStyles.container}>
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
           </View>
51
           </View>
52
 
52
 
53
         </View>
53
         </View>