mirror of
https://github.com/status-im/react-native.git
synced 2025-01-13 11:05:21 +00:00
Fixed DatePickerIOS onChange event
Reviewed By: @javache Differential Revision: D2429598
This commit is contained in:
parent
af05af7125
commit
33036b1f01
@ -145,6 +145,8 @@ var styles = StyleSheet.create({
|
||||
},
|
||||
});
|
||||
|
||||
var RCTDatePickerIOS = requireNativeComponent('RCTDatePicker', DatePickerIOS);
|
||||
var RCTDatePickerIOS = requireNativeComponent('RCTDatePicker', DatePickerIOS, {
|
||||
nativeOnly: { onChange: true },
|
||||
});
|
||||
|
||||
module.exports = DatePickerIOS;
|
||||
|
@ -38,6 +38,7 @@ RCT_EXPORT_VIEW_PROPERTY(date, NSDate)
|
||||
RCT_EXPORT_VIEW_PROPERTY(minimumDate, NSDate)
|
||||
RCT_EXPORT_VIEW_PROPERTY(maximumDate, NSDate)
|
||||
RCT_EXPORT_VIEW_PROPERTY(minuteInterval, NSInteger)
|
||||
RCT_EXPORT_VIEW_PROPERTY(onChange, RCTBubblingEventBlock)
|
||||
RCT_REMAP_VIEW_PROPERTY(mode, datePickerMode, UIDatePickerMode)
|
||||
RCT_REMAP_VIEW_PROPERTY(timeZoneOffsetInMinutes, timeZone, NSTimeZone)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user