Skip to content

Commit

Permalink
Merge pull request #341 from adattivo-developer/master
Browse files Browse the repository at this point in the history
Props for manage FlatList style and direction
  • Loading branch information
stulip authored Nov 20, 2024
2 parents 076eda2 + 6f92dc3 commit d5c3f91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/RichToolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,19 +253,19 @@ export default class RichToolbar extends Component {
}

render() {
const {style, disabled, children, flatContainerStyle} = this.props;
const {style, disabled, children, flatContainerStyle, horizontal} = this.props;
const vStyle = [styles.barContainer, style, disabled && this._getButtonDisabledStyle()];
return (
<View style={vStyle}>
<FlatList
horizontal
horizontal={horizontal}
style={flatContainerStyle}
keyboardShouldPersistTaps={'always'}
keyExtractor={(item, index) => item.action + '-' + index}
data={this.state.data}
alwaysBounceHorizontal={false}
showsHorizontalScrollIndicator={false}
renderItem={({item}) => this._renderAction(item.action, item.selected)}
contentContainerStyle={flatContainerStyle}
/>
{children}
</View>
Expand Down

0 comments on commit d5c3f91

Please sign in to comment.