amis-rpc-design/node_modules/react-native-screens/lib/module/fabric/SearchBarNativeComponent.js.map
2023-10-07 19:42:30 +08:00

1 line
2.9 KiB
Plaintext

{"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<SearchBarEvent> | null;\n onBlur?: BubblingEventHandler<SearchBarEvent> | null;\n onSearchButtonPress?: BubblingEventHandler<SearchButtonPressedEvent> | null;\n onCancelButtonPress?: BubblingEventHandler<SearchBarEvent> | null;\n onChangeText?: BubblingEventHandler<ChangeTextEvent> | null;\n hideWhenScrolling?: boolean;\n autoCapitalize?: WithDefault<AutoCapitalizeType, 'none'>;\n placeholder?: string;\n placement?: WithDefault<SearchBarPlacement, 'stacked'>;\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<SearchBarEvent> | null;\n onOpen?: BubblingEventHandler<SearchBarEvent> | null;\n hintTextColor?: ColorValue;\n headerIconColor?: ColorValue;\n shouldShowHintSearchIcon?: WithDefault<boolean, true>;\n}\n\ntype ComponentType = HostComponent<NativeProps>;\n\ninterface NativeCommands {\n blur: (viewRef: React.ElementRef<ComponentType>) => void;\n focus: (viewRef: React.ElementRef<ComponentType>) => void;\n clearText: (viewRef: React.ElementRef<ComponentType>) => void;\n toggleCancelButton: (\n viewRef: React.ElementRef<ComponentType>,\n flag: boolean\n ) => void;\n setText: (viewRef: React.ElementRef<ComponentType>, text: string) => void;\n}\n\nexport const Commands: NativeCommands = codegenNativeCommands<NativeCommands>({\n supportedCommands: [\n 'blur',\n 'focus',\n 'clearText',\n 'toggleCancelButton',\n 'setText',\n ],\n});\n\nexport default codegenNativeComponent<NativeProps>('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"}