Skip to content

Commit ad52f52

Browse files
varungupta85facebook-github-bot
authored andcommitted
Fix SwipeableActionButton styling. (#23113)
Summary: Thank you for sending the PR! We appreciate you spending the time to work on these changes. Help us understand your motivation by explaining why you decided to make this change: Changelog: ---------- Help reviewers and the release process by writing your own changelog entry. See http://facebook.github.io/react-native/docs/contributing#changelog for an example. [General] [Fixed] - Same style was applied twice to SwipeableQuickActionButton in a recent commit causing problems with the buttons layout. Pull Request resolved: #23113 Differential Revision: D13781896 Pulled By: cpojer fbshipit-source-id: 659ddaed32b6a1e90080344ea3b0b42088fd9783
1 parent 9672c2e commit ad52f52

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Libraries/Experimental/SwipeableRow/SwipeableQuickActionButton.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ class SwipeableQuickActionButton extends React.Component<{
3737
* found when Flow v0.82 was deployed. To see the error delete this comment
3838
* and run Flow. */
3939
style?: ?DeprecatedViewPropTypes.style,
40+
/* $FlowFixMe(>=0.82.0 site=react_native_fb) This comment suppresses an error
41+
* found when Flow v0.82 was deployed. To see the error delete this comment
42+
* and run Flow. */
43+
containerStyle?: ?DeprecatedViewPropTypes.style,
4044
testID?: string,
4145
text?: ?(string | Object | Array<string | Object>),
4246
/* $FlowFixMe(>=0.82.0 site=react_native_fb) This comment suppresses an error
@@ -64,8 +68,9 @@ class SwipeableQuickActionButton extends React.Component<{
6468
<TouchableHighlight
6569
onPress={this.props.onPress}
6670
testID={this.props.testID}
67-
underlayColor="transparent">
68-
<View style={this.props.style}>{mainView}</View>
71+
underlayColor="transparent"
72+
style={this.props.containerStyle}>
73+
{mainView}
6974
</TouchableHighlight>
7075
);
7176
}

0 commit comments

Comments
 (0)