Skip to content

Commit bf9fdff

Browse files
committed
Fixed bug for flex box style
1 parent 70a971b commit bf9fdff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-awesome-button",
3-
"version": "1.3.3",
3+
"version": "1.3.4",
44
"description": "A React Native component rendering a button supporting showing different appearances and functionality given the passed props",
55
"main": "index.js",
66
"scripts": {

src/AwesomeButton.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class AwesomeButton extends Component {
8282

8383
if (currentStateObject.onPress) {
8484
return (
85-
<TouchableOpacity style={ this.props.backgroundStyle } activeOpacity={0.92} onPress={ currentStateObject.onPress }>
85+
<TouchableOpacity style={ {flex: 1} } activeOpacity={0.92} onPress={ currentStateObject.onPress }>
8686
<Animated.View style={[ this.props.backgroundStyle, { backgroundColor: bgColor } ]}>
8787
<InnerButtonView currentStateObject={ currentStateObject } labelStyle={ this.props.labelStyle } spinnerColor={ this.props.spinnerColor } />
8888
</Animated.View>

0 commit comments

Comments
 (0)