From 7e2641fcdf6386ba9f183fab06d12ca77b98ad86 Mon Sep 17 00:00:00 2001 From: Umair Ansari Date: Wed, 2 Oct 2019 14:11:14 -0700 Subject: [PATCH] Allow styling of accessory container --- src/components/dropdown/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/dropdown/index.js b/src/components/dropdown/index.js index b1e65a1f..6dea536b 100644 --- a/src/components/dropdown/index.js +++ b/src/components/dropdown/index.js @@ -146,6 +146,7 @@ export default class Dropdown extends PureComponent { renderBase: PropTypes.func, renderAccessory: PropTypes.func, + accessoryContainerStyle: (ViewPropTypes || View.propTypes).style, containerStyle: (ViewPropTypes || View.propTypes).style, overlayStyle: (ViewPropTypes || View.propTypes).style, pickerStyle: (ViewPropTypes || View.propTypes).style, @@ -550,11 +551,11 @@ export default class Dropdown extends PureComponent { } renderAccessory() { - let { baseColor: backgroundColor } = this.props; + let { baseColor: backgroundColor, accessoryContainerStyle } = this.props; let triangleStyle = { backgroundColor }; return ( - +