From ac4805caaba7a97ea81478f14bb1c54e901f39e4 Mon Sep 17 00:00:00 2001 From: anthonygabriele Date: Tue, 22 May 2018 11:36:30 -0400 Subject: [PATCH 1/2] Added landscape orientation support --- lib/countryPicker.js | 2 ++ lib/index.js | 1 + 2 files changed, 3 insertions(+) diff --git a/lib/countryPicker.js b/lib/countryPicker.js index 1e31cf4b..625df249 100644 --- a/lib/countryPicker.js +++ b/lib/countryPicker.js @@ -8,6 +8,7 @@ import styles from './styles'; const PickerItem = Picker.Item; const propTypes = { + supportedOrientations: PropTypes.string, buttonColor: PropTypes.string, labels: PropTypes.array, confirmText: PropTypes.string, @@ -80,6 +81,7 @@ export default class CountryPicker extends Component { const itemStyle = this.props.itemStyle || {}; return ( { this.picker = ref; }} + supportedOrientations={this.props.supportedOrientations} selectedCountry={iso2} onSubmit={this.selectCountry} buttonColor={this.props.pickerButtonColor} From 317be1d527ce487e988993689eb502aa36416f7b Mon Sep 17 00:00:00 2001 From: anthonygabriele Date: Tue, 22 May 2018 12:25:30 -0400 Subject: [PATCH 2/2] Fixed proptype --- lib/countryPicker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/countryPicker.js b/lib/countryPicker.js index 625df249..cc3df252 100644 --- a/lib/countryPicker.js +++ b/lib/countryPicker.js @@ -8,7 +8,7 @@ import styles from './styles'; const PickerItem = Picker.Item; const propTypes = { - supportedOrientations: PropTypes.string, + supportedOrientations: PropTypes.array, buttonColor: PropTypes.string, labels: PropTypes.array, confirmText: PropTypes.string,