{"version":3,"sources":["AndroidDialogPickerNativeComponent.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,CAAc,wBAAd,EAAwC;AAC5EI,EAAAA,iBAAiB,EAAE,CAAC,KAAD,CADyD;AAE5EC,EAAAA,aAAa,EAAE;AAF6D,CAAxC,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  Int32,\n  Double,\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<PickerItem>,\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<PickerAndroidChangeEvent, 'topSelect'>,\n  onFocus?: BubblingEventHandler<null, 'topFocus'>,\n  onBlur?: BubblingEventHandler<null, 'topBlur'>,\n|}>;\n\ntype ComponentType = HostComponent<NativeProps>;\n\ninterface NativeCommands {\n  +focus: (viewRef: React.ElementRef<ComponentType>) => void;\n  +blur: (viewRef: React.ElementRef<ComponentType>) => void;\n  +setNativeSelected: (\n    viewRef: React.ElementRef<ComponentType>,\n    selected: Int32,\n  ) => void;\n}\n\nexport const Commands: NativeCommands = codegenNativeCommands<NativeCommands>({\n  supportedCommands: ['focus', 'blur', 'setNativeSelected'],\n});\n\nexport default (codegenNativeComponent<NativeProps>('RNCAndroidDialogPicker', {\n  excludedPlatforms: ['iOS'],\n  interfaceOnly: true,\n}): ComponentType);\n"]}