Skip to content

Commit

Permalink
fix: use prop for both scenarios
Browse files Browse the repository at this point in the history
Signed-off-by: Prince Mendiratta <prince.mendi@gmail.com>
  • Loading branch information
Prince-Mendiratta committed May 4, 2023
1 parent 74e2084 commit cf8fa02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/OptionsSelector/BaseOptionsSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ class BaseOptionsSelector extends Component {
</>
) : (
<>
<View style={[styles.ph5, styles.pb3]}>
<View style={this.props.shouldUseStyleForChildren ? [styles.ph5, styles.pb3] : []}>
{this.props.children}
{this.props.shouldShowTextInput && textInput}
</View>
Expand Down

0 comments on commit cf8fa02

Please sign in to comment.