From 60e38870fb277f49a78dd278cda77dd6dcf9f46d Mon Sep 17 00:00:00 2001 From: Adrian Perez Date: Fri, 5 Jan 2018 16:50:03 +0100 Subject: [PATCH] feat: pass `locale` to native control if given If given a `locale` prop, pass to native control to override, this is landing in React Native 0.52. --- datepicker.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/datepicker.js b/datepicker.js index 175faef744..5930bd4616 100644 --- a/datepicker.js +++ b/datepicker.js @@ -338,7 +338,8 @@ class DatePicker extends Component { TouchableComponent, testID, cancelBtnTestID, - confirmBtnTestID + confirmBtnTestID, + locale } = this.props; const dateInputStyle = [ @@ -397,6 +398,7 @@ class DatePicker extends Component { minuteInterval={minuteInterval} timeZoneOffsetInMinutes={timeZoneOffsetInMinutes} style={[Style.datePicker, customStyles.datePicker]} + locale={locale} />