浏览代码

Added buttons for voting properly

luislopez66 2 年前
父节点
当前提交
056d0a8508
共有 1 个文件被更改,包括 12 次插入3 次删除
  1. 12
    3
      MocionesIUPI/screens/MocionScreen.js

+ 12
- 3
MocionesIUPI/screens/MocionScreen.js 查看文件

@@ -95,9 +95,18 @@ export default App = () => {
95 95
     <View style={{ flex: 1, padding: 24 }}>
96 96
       <Text>{Mocion}</Text>
97 97
       <Text>{Description}</Text>
98
-      <button>{A favor}</button>
99
-      <button>{En contra}</button>
100
-      <button>{Abstenido}</button>
98
+      <Button>
99
+        title = "A favor"
100
+        onPress={() => Alert.alert('Voto a favor')}
101
+      </Button>
102
+      <Button>
103
+        title = "En contra"
104
+        onPress={() => Alert.alert('Voto en contra')}
105
+      </Button>
106
+      <Button>
107
+        title = "Abstenido"
108
+        onPress={() => Alert.alert('Se abstuvo al voto')}
109
+      </Button>
101 110
     </View>
102 111
   );
103 112
 };