{"version":3,"sources":["RNCPickerNativeComponent.js"],"names":["React","codegenNativeComponent","codegenNativeCommands","Commands","supportedCommands","excludedPlatforms"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AAUA,OAAOC,sBAAP,MAAmC,yDAAnC;AACA,OAAOC,qBAAP,MAAkC,wDAAlC;AA6CA,OAAO,MAAMC,QAAwB,GAAGD,qBAAqB,CAAiB;AAC5EE,EAAAA,iBAAiB,EAAE,CAAC,wBAAD;AADyD,CAAjB,CAAtD;AAIP,eAAgBH,sBAAsB,CAAc,WAAd,EAA2B;AAC/DI,EAAAA,iBAAiB,EAAE,CAAC,SAAD;AAD4C,CAA3B,CAAtC","sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nimport * as React from 'react';\nimport type {ColorValue} from 'react-native/Libraries/StyleSheet/StyleSheet';\nimport type {ViewProps} from 'react-native/Libraries/Components/View/ViewPropTypes';\nimport type {HostComponent} from 'react-native/Libraries/Renderer/shims/ReactNativeTypes';\nimport type {\n BubblingEventHandler,\n Int32,\n} from 'react-native/Libraries/Types/CodegenTypes';\nimport type {ProcessedColorValue} from 'react-native/Libraries/StyleSheet/processColor';\n\nimport codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';\nimport codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands';\n\ntype PickerIOSChangeEvent = $ReadOnly<{|\n newValue: string,\n newIndex: Int32,\n|}>;\n\ntype RNCPickerIOSTypeItemType = $ReadOnly<{|\n label: ?string,\n value: ?string,\n textColor: ?ColorValue,\n testID: ?string,\n|}>;\n\nexport type NativeProps = $ReadOnly<{|\n ...ViewProps,\n items: $ReadOnlyArray,\n selectedIndex: Int32,\n selectionColor?: ?ProcessedColorValue,\n onChange: BubblingEventHandler,\n color?: ColorValue,\n textAlign?: string,\n numberOfLines?: Int32,\n fontSize?: Int32,\n fontWeight?: string,\n fontStyle?: string,\n fontFamily?: string,\n testID?: ?string,\n themeVariant?: ?string,\n\n // TODO: for some reason codegen does not create `fromRawValue` inline functions for\n // objects inside the `ReadOnlyArray` of items, so we need to explicitly define a prop\n // with this object so those functions are generated\n fakeProp?: RNCPickerIOSTypeItemType,\n|}>;\n\ntype ComponentType = HostComponent;\n\ninterface NativeCommands {\n +setNativeSelectedIndex: (\n viewRef: React.ElementRef,\n selectedIndex: Int32,\n ) => void;\n}\n\nexport const Commands: NativeCommands = codegenNativeCommands({\n supportedCommands: ['setNativeSelectedIndex'],\n});\n\nexport default (codegenNativeComponent('RNCPicker', {\n excludedPlatforms: ['android'],\n}): ComponentType);\n"]}