diff --git a/examples/src/example.tsx b/examples/src/example.tsx index fd1955f..d7a13f3 100644 --- a/examples/src/example.tsx +++ b/examples/src/example.tsx @@ -303,7 +303,7 @@ export function Example(props: IProps) { { */ style?: StyleProp; + /** + * Flat style prop for the toolbar + */ + flatStyle?: StyleProp; + /** * Flat container style prop for the toolbar */ diff --git a/src/RichToolbar.js b/src/RichToolbar.js index 69e464e..ecd806d 100755 --- a/src/RichToolbar.js +++ b/src/RichToolbar.js @@ -259,13 +259,14 @@ export default class RichToolbar extends Component { } render() { - const { style, disabled, children, flatContainerStyle, horizontal = true } = this.props; + const { style, disabled, children, flatStyle, flatContainerStyle, horizontal = true } = this.props; const vStyle = [styles.barContainer, style, disabled && this._getButtonDisabledStyle()]; return ( item.action + '-' + index} data={this.state.data}