diff --git a/README.md b/README.md index d382a18d..40d6adb8 100644 --- a/README.md +++ b/README.md @@ -67,13 +67,13 @@ class SampleApp extends Component { data={data} initValue="Select something yummy!" onChange={(option)=>{ this.setState({textInputValue:option.label})}}> - + - + ); @@ -97,3 +97,4 @@ class SampleApp extends Component { * `optionTextStyle - object` optional, style definitions for the option text element * `cancelStyle - object` optional, style definitions for the cancel element * `cancelTextStyle - object` optional, style definitions for the cancel text element +* `optionContainer - object` optional, style definitions for the options container diff --git a/index.js b/index.js index d65bf4c0..b5a67e39 100644 --- a/index.js +++ b/index.js @@ -33,6 +33,7 @@ const propTypes = { cancelStyle: View.propTypes.style, cancelTextStyle: Text.propTypes.style, overlayStyle: View.propTypes.style, + optionContainer: View.propTypes.style, cancelText: PropTypes.string }; @@ -49,6 +50,7 @@ const defaultProps = { cancelStyle: {}, cancelTextStyle: {}, overlayStyle: {}, + optionContainer: {}, cancelText: 'cancel' }; @@ -130,7 +132,7 @@ export default class ModalPicker extends BaseComponent { return ( - + {options}