react-native-macos/Libraries/Components
Robert Paul fd9c3618fc - Adding locale prop to DatePickerIOS
Summary:
<!--
Thank you for sending the PR! We appreciate you spending the time to work on these changes.

Help us understand your motivation by explaining why you decided to make this change.

You can learn more about contributing to React Native here: http://facebook.github.io/react-native/docs/contributing.html

Happy contributing!

-->

While building a React Native application, I've come across the use case of wanting to set a specific locale for DatePickers irrespective of the users OS region setting. Since this is a feature available to native DatePicker components, I think it would be helpful to expose this in React Native as well.

Testing can be done by passing a `locale` prop to a DatePickerIOS. Example:

```
<DatePickerIOS
  date={this.state.date}
  mode="date"
  locale="fr_FR"
  onDateChange={date => this.setState({ date: date })}
/>
```

<!--
Help reviewers and the release process by writing your own release notes

**INTERNAL and MINOR tagged notes will not be included in the next version's final release notes.**

  CATEGORY
[----------]        TYPE
[ CLI      ]   [-------------]      LOCATION
[ DOCS     ]   [ BREAKING    ]   [-------------]
[ GENERAl  ]   [ BUGFIX      ]   [-{Component}-]
[ INTERNAL ]   [ ENHANCEMENT ]   [ {File}      ]
[ IOS      ]   [ FEATURE     ]   [ {Directory} ]   |-----------|
[ ANDROID  ]   [ MINOR       ]   [ {Framework} ] - | {Message} |
[----------]   [-------------]   [-------------]   |-----------|

[CATEGORY] [TYPE] [LOCATION] - MESSAGE

 EXAMPLES:

 [IOS] [BREAKING] [FlatList] - Change a thing that breaks other things
 [ANDROID] [BUGFIX] [TextInput] - Did a thing to TextInput
 [CLI] [FEATURE] [local-cli/info/info.js] - CLI easier to do things with
 [DOCS] [BUGFIX] [GettingStarted.md] - Accidentally a thing/word
 [GENERAL] [ENHANCEMENT] [Yoga] - Added new yoga thing/position
 [INTERNAL] [FEATURE] [./scripts] - Added thing to script that nobody will see
-->
[IOS][ENHANCEMENT][DatePickerIOS] - Adding a locale prop.
Closes https://github.com/facebook/react-native/pull/16639

Differential Revision: D6241981

Pulled By: hramos

fbshipit-source-id: 77b1b85c09f3e12d6b3e103b3d1ffd1f12e2cea9
2017-11-04 14:40:24 -07:00
..
AccessibilityInfo iOS: Introduce API for making screen reader announcements 2017-05-30 04:46:08 -07:00
ActivityIndicator Fix Flow errors at declaration of most major library components 2017-10-20 03:50:25 -07:00
AppleTV Update remaining PropTypes references 2017-06-12 16:03:09 -07:00
CheckBox Fix Flow errors at declaration of most major library components 2017-10-20 03:50:25 -07:00
Clipboard Remove deprecated APIs and modules 2016-10-11 07:43:52 -07:00
DatePicker - Adding locale prop to DatePickerIOS 2017-11-04 14:40:24 -07:00
DatePickerAndroid Fixed a typo in open function documentation 2017-04-18 15:36:20 -07:00
DrawerAndroid Expose StatusBar height and fix StatusBar example - T13591448 2017-08-15 11:11:39 -07:00
Keyboard - Fixed link ref for NativeEventEmitter.js 2017-10-29 23:17:18 -07:00
MaskedView Wrong name 2017-09-29 15:03:23 -07:00
Navigation @allow-large-files Flow v0.54.0 2017-09-06 03:33:43 -07:00
Picker Upgrade fbsource/xplat/js to Flow v0.53.0 2017-08-17 18:45:01 -07:00
ProgressBarAndroid Removed ProgressBarAndroid.android deprecation warning 2017-10-18 17:01:04 -07:00
ProgressViewIOS Fix Flow errors at declaration of most major library components 2017-10-20 03:50:25 -07:00
RefreshControl Fix Flow errors at declaration of most major library components 2017-10-20 03:50:25 -07:00
SafeAreaView Introducing <SafeAreaView> 2017-09-24 23:01:25 -07:00
ScrollView @allow-large-files Flow 0.58 upgrade for xplat/js 2017-11-02 10:51:14 -07:00
SegmentedControlIOS Fix Flow errors at declaration of most major library components 2017-10-20 03:50:25 -07:00
Slider Docs: Improve documentation of Slider (add example) 2017-10-31 09:42:07 -07:00
StatusBar Upgrade fbsource/xplat/js to Flow v0.53.0 2017-08-17 18:45:01 -07:00
Switch Fix Flow errors at declaration of most major library components 2017-10-20 03:50:25 -07:00
TabBarIOS Fix $FlowFixMes from TabBarIOS 2017-11-01 19:17:11 -07:00
TextInput @allow-large-files Flow 0.58 upgrade for xplat/js 2017-11-02 10:51:14 -07:00
TimePickerAndroid Add TimePicker modes 2017-10-08 12:38:45 -07:00
ToastAndroid Fix typo 2017-09-05 12:48:16 -07:00
ToolbarAndroid Replace React.createClass with create-react-class 2017-07-07 14:36:01 -07:00
Touchable @allow-large-files Flow 0.58 upgrade for xplat/js 2017-11-02 10:51:14 -07:00
UnimplementedViews Upgrade fbsource/xplat/js to Flow v0.53.0 2017-08-17 18:45:01 -07:00
View Fix Flow errors at declaration of most major library components 2017-10-20 03:50:25 -07:00
ViewPager Add description to require a key for each child in ViewPageAndroid 2017-10-18 01:00:15 -07:00
WebView Run eslint --fix 2017-10-09 17:46:44 -07:00
Button.js Apple TV: TouchableOpacity and Button need hasTVPreferredFocus support 2017-10-18 12:18:12 -07:00
LazyRenderer.js Replace React.createClass with create-react-class 2017-07-07 14:36:01 -07:00
ScrollResponder.js Handle touchCancel properly in ScrollResponder 2017-10-19 15:30:44 -07:00
StaticContainer.react.js Upgrade fbsource/xplat/js to Flow v0.53.0 2017-08-17 18:45:01 -07:00
StaticRenderer.js Upgrade fbsource/xplat/js to Flow v0.53.0 2017-08-17 18:45:01 -07:00
Subscribable.js