Skip to content

Commit d5c3f91

Browse files
authored
Merge pull request #341 from adattivo-developer/master
Props for manage FlatList style and direction
2 parents 076eda2 + 6f92dc3 commit d5c3f91

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/RichToolbar.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,19 +253,19 @@ export default class RichToolbar extends Component {
253253
}
254254

255255
render() {
256-
const {style, disabled, children, flatContainerStyle} = this.props;
256+
const {style, disabled, children, flatContainerStyle, horizontal} = this.props;
257257
const vStyle = [styles.barContainer, style, disabled && this._getButtonDisabledStyle()];
258258
return (
259259
<View style={vStyle}>
260260
<FlatList
261-
horizontal
261+
horizontal={horizontal}
262+
style={flatContainerStyle}
262263
keyboardShouldPersistTaps={'always'}
263264
keyExtractor={(item, index) => item.action + '-' + index}
264265
data={this.state.data}
265266
alwaysBounceHorizontal={false}
266267
showsHorizontalScrollIndicator={false}
267268
renderItem={({item}) => this._renderAction(item.action, item.selected)}
268-
contentContainerStyle={flatContainerStyle}
269269
/>
270270
{children}
271271
</View>

0 commit comments

Comments
 (0)