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
On Android, the picker will be controlled by the system locale. If you wish to change it, [see instructions here](https://stackoverflow.com/a/2900144/2070942).
182
+
183
+
On iOS, the locale can be controlled from xCode, as [documented here](https://developer.apple.com/documentation/xcode/adding-support-for-languages-and-regions).
184
+
185
+
For Expo, follow the [localization docs](https://docs.expo.dev/distribution/app-stores/#localizing-your-ios-app).
186
+
180
187
## Props
181
188
182
189
> Please note that this library currently exposes functionality from [`UIDatePicker`](https://developer.apple.com/documentation/uikit/uidatepicker?language=objc) on iOS and [DatePickerDialog](https://developer.android.com/reference/android/app/DatePickerDialog) + [TimePickerDialog](https://developer.android.com/reference/android/app/TimePickerDialog) on Android, and [`CalendarDatePicker`](https://docs.microsoft.com/en-us/windows/uwp/design/controls-and-patterns/calendar-date-picker) +[TimePicker](https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.controls.timepicker?view=winrt-19041) on Windows.
@@ -310,14 +317,6 @@ Allows changing of the textColor of the date picker. Has effect only when `displ
310
317
<RNDateTimePicker textColor="red"/>
311
318
```
312
319
313
-
#### `locale` (`optional`, `iOS only`)
314
-
315
-
Allows changing of the locale of the component. By default it uses the device's locale.
316
-
317
-
```js
318
-
<RNDateTimePicker locale="es-ES"/>
319
-
```
320
-
321
320
#### `is24Hour` (`optional`, `Windows and Android only`)
322
321
323
322
Allows changing of the time picker to a 24 hour format. By default, this value is decided automatcially based on the user's chosen locale and other preferences.
0 commit comments