You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: support preferredDatePickerStyle in iOS 14 (#246)
BREAKING CHANGE: you need XCode 11 to build this version, and you need this version to properly support iOS 14 (for that you need XCode 12)
This adds support for preferredDatePickerStyle to the module. We took the android-only display prop and extended the support for iOS too, as opposed to adding a new ios-only prop.
@@ -69,7 +69,7 @@ React Native date & time picker component for iOS, Android and Windows.
69
69
70
70
## Requirements
71
71
72
-
- Xcode >= 10
72
+
- Xcode >= 11
73
73
74
74
## Expo users notice
75
75
@@ -192,17 +192,24 @@ List of possible values:
192
192
<RNDateTimePicker mode="time"/>
193
193
```
194
194
195
-
#### `display` (`optional`, `Android only`)
195
+
#### `display` (`optional`)
196
196
197
-
Defines the visual display of the picker for Android and will be ignored for iOS.
197
+
Defines the visual display of the picker. The default value is `"default"`.
198
198
199
-
List of possible values:
199
+
List of possible values for Android
200
200
201
-
-`"default"` - Show a default date picker (spinner/calendar/clock) based on `mode` and android version.
201
+
-`"default"` - Show a default date picker (spinner/calendar/clock) based on `mode` and Android version.
202
202
-`"spinner"`
203
203
-`"calendar"` (only for `date` mode)
204
204
-`"clock"` (only for `time` mode)
205
205
206
+
List of possible values for iOS (maps to [preferredDatePickerStyle](https://developer.apple.com/documentation/uikit/uidatepicker/3526124-preferreddatepickerstyle?changes=latest_minor&language=objc))
207
+
208
+
-`"default"` - Automatically pick the best style available for the current platform & mode.
209
+
-`"spinner"` - the usual appearance with a wheel from which you choose values
210
+
-`"compact"` - Affects only iOS 14 and later. Will fall back to "spinner" if not supported.
211
+
-`"inline"` - Affects only iOS 14 and later. Will fall back to "spinner" if not supported.
0 commit comments