mirror of
https://github.com/status-im/react-native.git
synced 2025-01-24 16:29:01 +00:00
Fixed PickerIOS onChange event
This commit is contained in:
parent
8586f89322
commit
ad0c97f25b
@ -111,6 +111,12 @@ var styles = StyleSheet.create({
|
||||
},
|
||||
});
|
||||
|
||||
var RCTPickerIOS = requireNativeComponent('RCTPicker', null);
|
||||
var RCTPickerIOS = requireNativeComponent('RCTPicker', PickerIOS, {
|
||||
nativeOnly: {
|
||||
items: true,
|
||||
onChange: true,
|
||||
selectedIndex: true,
|
||||
},
|
||||
});
|
||||
|
||||
module.exports = PickerIOS;
|
||||
|
@ -24,6 +24,7 @@ RCT_EXPORT_MODULE()
|
||||
|
||||
RCT_EXPORT_VIEW_PROPERTY(items, NSDictionaryArray)
|
||||
RCT_EXPORT_VIEW_PROPERTY(selectedIndex, NSInteger)
|
||||
RCT_EXPORT_VIEW_PROPERTY(onChange, RCTBubblingEventBlock)
|
||||
|
||||
- (NSDictionary *)constantsToExport
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user