mirror of
https://github.com/status-im/react-native.git
synced 2025-02-03 13:14:42 +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;
|
module.exports = PickerIOS;
|
||||||
|
@ -24,6 +24,7 @@ RCT_EXPORT_MODULE()
|
|||||||
|
|
||||||
RCT_EXPORT_VIEW_PROPERTY(items, NSDictionaryArray)
|
RCT_EXPORT_VIEW_PROPERTY(items, NSDictionaryArray)
|
||||||
RCT_EXPORT_VIEW_PROPERTY(selectedIndex, NSInteger)
|
RCT_EXPORT_VIEW_PROPERTY(selectedIndex, NSInteger)
|
||||||
|
RCT_EXPORT_VIEW_PROPERTY(onChange, RCTBubblingEventBlock)
|
||||||
|
|
||||||
- (NSDictionary *)constantsToExport
|
- (NSDictionary *)constantsToExport
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user