{"version":3,"names":["codegenNativeComponent","codegenNativeCommands","Commands","supportedCommands"],"sources":["SearchBarNativeComponent.ts"],"sourcesContent":["/* eslint-disable */\nimport codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';\nimport type { ViewProps, ColorValue, HostComponent } from 'react-native';\nimport type {\n WithDefault,\n BubblingEventHandler,\n} from 'react-native/Libraries/Types/CodegenTypes';\nimport codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands';\n\ntype SearchBarEvent = Readonly<{}>;\n\ntype SearchButtonPressedEvent = Readonly<{\n text?: string;\n}>;\n\ntype ChangeTextEvent = Readonly<{\n text?: string;\n}>;\n\ntype SearchBarPlacement = 'automatic' | 'inline' | 'stacked';\n\ntype AutoCapitalizeType = 'none' | 'words' | 'sentences' | 'characters';\n\ninterface NativeProps extends ViewProps {\n onFocus?: BubblingEventHandler | null;\n onBlur?: BubblingEventHandler | null;\n onSearchButtonPress?: BubblingEventHandler | null;\n onCancelButtonPress?: BubblingEventHandler | null;\n onChangeText?: BubblingEventHandler | null;\n hideWhenScrolling?: boolean;\n autoCapitalize?: WithDefault;\n placeholder?: string;\n placement?: WithDefault;\n obscureBackground?: boolean;\n hideNavigationBar?: boolean;\n cancelButtonText?: string;\n // TODO: implement these on iOS\n barTintColor?: ColorValue;\n tintColor?: ColorValue;\n textColor?: ColorValue;\n\n // Android only\n disableBackButtonOverride?: boolean;\n // TODO: consider creating enum here\n inputType?: string;\n onClose?: BubblingEventHandler | null;\n onOpen?: BubblingEventHandler | null;\n hintTextColor?: ColorValue;\n headerIconColor?: ColorValue;\n shouldShowHintSearchIcon?: WithDefault;\n}\n\ntype ComponentType = HostComponent;\n\ninterface NativeCommands {\n blur: (viewRef: React.ElementRef) => void;\n focus: (viewRef: React.ElementRef) => void;\n clearText: (viewRef: React.ElementRef) => void;\n toggleCancelButton: (\n viewRef: React.ElementRef,\n flag: boolean\n ) => void;\n setText: (viewRef: React.ElementRef, text: string) => void;\n}\n\nexport const Commands: NativeCommands = codegenNativeCommands({\n supportedCommands: [\n 'blur',\n 'focus',\n 'clearText',\n 'toggleCancelButton',\n 'setText',\n ],\n});\n\nexport default codegenNativeComponent('RNSSearchBar', {});\n"],"mappings":"AAAA;AACA,OAAOA,sBAAsB,MAAM,yDAAyD;AAM5F,OAAOC,qBAAqB,MAAM,wDAAwD;AA0D1F,OAAO,MAAMC,QAAwB,GAAGD,qBAAqB,CAAiB;EAC5EE,iBAAiB,EAAE,CACjB,MAAM,EACN,OAAO,EACP,WAAW,EACX,oBAAoB,EACpB,SAAS;AAEb,CAAC,CAAC;AAEF,eAAeH,sBAAsB,CAAc,cAAc,EAAE,CAAC,CAAC,CAAC"}