Browse Source

allow external styling on Button

David 9 years ago
parent
commit
d3d166eba6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/components/common/Button.js

+ 2 - 2
src/components/common/Button.js

@@ -5,9 +5,9 @@ const Button = (props) => {
   const { buttonStyle, textStyle } = styles;
   const { buttonStyle, textStyle } = styles;
   const { children, onPress } = props;
   const { children, onPress } = props;
   return (
   return (
-    <TouchableOpacity onPress={onPress} style={buttonStyle}>
+    <TouchableOpacity onPress={onPress} style={[buttonStyle, props.style]}>
       <Text style={textStyle}>
       <Text style={textStyle}>
-        { children}
+        {children}
       </Text>
       </Text>
     </TouchableOpacity>
     </TouchableOpacity>
   );
   );