File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 11import React from "react" ;
2+ import { CardSection } from "./" ;
23import { Text , TouchableOpacity } from "react-native" ;
34
45const Button = ( { onPress, children } ) => {
56 const { buttonStyle, textStyle } = styles ;
67 return (
7- < TouchableOpacity onPress = { onPress } style = { buttonStyle } >
8- < Text style = { textStyle } > { children } </ Text >
9- </ TouchableOpacity >
8+ < CardSection >
9+ < TouchableOpacity onPress = { onPress } style = { buttonStyle } >
10+ < Text style = { textStyle } > { children } </ Text >
11+ </ TouchableOpacity >
12+ </ CardSection >
1013 ) ;
1114} ;
1215
1316const styles = {
1417 textStyle : {
1518 alignSelf : "center" ,
16- color : "#007AFF " ,
19+ color : "#007aff " ,
1720 fontSize : 16 ,
1821 fontWeight : "600" ,
1922 paddingTop : 10 ,
@@ -22,10 +25,10 @@ const styles = {
2225 buttonStyle : {
2326 flex : 1 ,
2427 alignSelf : "stretch" ,
25- backgroundColor : "#FFF " ,
28+ backgroundColor : "#fff " ,
2629 borderRadius : 5 ,
2730 borderWidth : 1 ,
28- borderColor : "#007AFF " ,
31+ borderColor : "#007aff " ,
2932 marginLeft : 5 ,
3033 marginRight : 5
3134 }
You can’t perform that action at this time.
0 commit comments