Fixed DatePickerIOS onChange event

Reviewed By: @javache

Differential Revision: D2429598
This commit is contained in:
Nick Lockwood 2015-09-10 10:05:08 -07:00 committed by facebook-github-bot-9
parent af05af7125
commit 33036b1f01
2 changed files with 4 additions and 1 deletions

View File

@ -145,6 +145,8 @@ var styles = StyleSheet.create({
},
});
var RCTDatePickerIOS = requireNativeComponent('RCTDatePicker', DatePickerIOS);
var RCTDatePickerIOS = requireNativeComponent('RCTDatePicker', DatePickerIOS, {
nativeOnly: { onChange: true },
});
module.exports = DatePickerIOS;

View File

@ -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)