Skip to content

Commit 2400cda

Browse files
committed
attach style to button
1 parent 0bb39a8 commit 2400cda

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Button.android.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Button extends Component{
1212
background={TouchableNativeFeedback.SelectableBackground()}
1313
{...this.props}
1414
>
15-
<View>
15+
<View style={this.props.style}>
1616
{this.props.children}
1717
</View>
1818
</TouchableNativeFeedback>

Button.ios.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class Button extends Component{
88
render(){
99
return(
1010
<TouchableOpacity {...props}>
11-
<View>
11+
<View style={this.props.style}>
1212
{props.children}
1313
</View>
1414
</TouchableOpacity>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-nativebutton",
3-
"version": "0.1.0",
3+
"version": "0.1.3",
44
"description": "ReactNative - Native button for iOS and Android",
55
"main": "index.js",
66
"directories": {

0 commit comments

Comments
 (0)