{"version":3,"sources":["AndroidDropdownPickerNativeComponent.js"],"names":["React","codegenNativeComponent","codegenNativeCommands","Commands","supportedCommands","excludedPlatforms","interfaceOnly"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;;AAEA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AAUA,OAAOC,sBAAP,MAAmC,yDAAnC;AACA,OAAOC,qBAAP,MAAkC,wDAAlC;AAiDA,OAAO,MAAMC,QAAwB,GAAGD,qBAAqB,CAAiB;AAC5EE,EAAAA,iBAAiB,EAAE,CAAC,OAAD,EAAU,MAAV,EAAkB,mBAAlB;AADyD,CAAjB,CAAtD;AAIP,eAAgBH,sBAAsB,CACpC,0BADoC,EAEpC;AACEI,EAAAA,iBAAiB,EAAE,CAAC,KAAD,CADrB;AAEEC,EAAAA,aAAa,EAAE;AAFjB,CAFoC,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 * @format\n * @flow\n */\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 Double,\n Int32,\n} from 'react-native/Libraries/Types/CodegenTypes';\n\nimport codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';\nimport codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands';\n\nexport type PickerAndroidChangeEvent = $ReadOnly<{|\n position: Int32,\n|}>;\n\nexport type PickerItemStyle = $ReadOnly<{|\n backgroundColor?: ?ColorValue,\n color?: ?ColorValue,\n fontSize?: ?Double,\n fontFamily?: ?string,\n|}>;\n\nexport type PickerItem = $ReadOnly<{|\n label: string,\n value: ?string,\n color?: ColorValue,\n fontFamily: ?string,\n enabled?: ?boolean,\n style?: ?PickerItemStyle,\n|}>;\n\ntype NativeProps = $ReadOnly<{|\n ...ViewProps,\n items: $ReadOnlyArray,\n color?: ColorValue,\n prompt?: ?string,\n enabled?: ?boolean,\n selected: Int32,\n backgroundColor?: Int32,\n dropdownIconColor?: Int32,\n dropdownIconRippleColor?: Int32,\n numberOfLines?: ?Int32,\n onSelect?: BubblingEventHandler,\n onFocus?: BubblingEventHandler,\n onBlur?: BubblingEventHandler,\n|}>;\n\ntype ComponentType = HostComponent;\n\ninterface NativeCommands {\n +focus: (viewRef: React.ElementRef) => void;\n +blur: (viewRef: React.ElementRef) => void;\n +setNativeSelected: (\n viewRef: React.ElementRef,\n selected: Int32,\n ) => void;\n}\n\nexport const Commands: NativeCommands = codegenNativeCommands({\n supportedCommands: ['focus', 'blur', 'setNativeSelected'],\n});\n\nexport default (codegenNativeComponent(\n 'RNCAndroidDropdownPicker',\n {\n excludedPlatforms: ['iOS'],\n interfaceOnly: true,\n },\n): ComponentType);\n"]}