From 3a9df99e0307497f6bf2dc273cb589101694111f Mon Sep 17 00:00:00 2001 From: feyy Date: Mon, 6 Feb 2017 17:24:49 +0800 Subject: [PATCH] fix(datepicker): fix datepicker can't open in landscape mode bug add Modal supportedOrientations properties to support all orientations mode #28 --- index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.js b/index.js index f2c5ccdd58..31fb980151 100644 --- a/index.js +++ b/index.js @@ -20,6 +20,8 @@ const FORMATS = { 'time': 'HH:mm' }; +const SUPPORTED_ORIENTATIONS = ["portrait", "portrait-upside-down", "landscape", "landscape-left", "landscape-right"]; + class DatePicker extends Component { constructor(props) { super(props); @@ -285,7 +287,9 @@ class DatePicker extends Component { />} {Platform.OS === 'ios' && {this.setModalVisible(false);}} >