ソースを参照

allow external styling on Button

David 9 年 前
コミット
d3d166eba6
1 ファイル変更2 行追加2 行削除
  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 { children, onPress } = props;
   return (
-    <TouchableOpacity onPress={onPress} style={buttonStyle}>
+    <TouchableOpacity onPress={onPress} style={[buttonStyle, props.style]}>
       <Text style={textStyle}>
-        { children}
+        {children}
       </Text>
     </TouchableOpacity>
   );