UNPKG

one

Version:

One is a React framework for web, iOS, and Android apps.

8 lines (7 loc) • 2.43 kB
{ "version": 3, "sources": ["src/platform/specs/OneNativePopoverNativeComponent.ts"], "sourcesContent": ["// generated by bun run generate from the SwiftUI SDK and codegen/catalog.ts.\n// edit the generator or catalog, then regenerate.\nimport type { ViewProps } from 'react-native';\nimport type { DirectEventHandler, Int32, Double } from 'react-native/Libraries/Types/CodegenTypes';\nimport codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';\ninterface NativeProps extends ViewProps {\n isPresented: boolean;\n acknowledgedEvent: Int32;\n revision: Int32;\n arrowEdge: string;\n presentationCompactAdaptation: string;\n contentWidth: Double;\n contentHeight: Double;\n onNativePopoverIsPresentedChange?: DirectEventHandler<Readonly<{\n isPresented: boolean;\n eventCount: Int32;\n revision: Int32;\n }>>;\n}\nconst NativeComponentRegistry = require('react-native/Libraries/NativeComponent/NativeComponentRegistry');\nconst {\n ConditionallyIgnoredEventHandlers\n} = require('react-native/Libraries/NativeComponent/ViewConfigIgnore');\nlet nativeComponentName = 'OneNativePopover';\nexport const __INTERNAL_VIEW_CONFIG = {\n uiViewClassName: \"OneNativePopover\",\n directEventTypes: {\n topNativePopoverIsPresentedChange: {\n registrationName: \"onNativePopoverIsPresentedChange\"\n }\n },\n validAttributes: {\n isPresented: true,\n acknowledgedEvent: true,\n revision: true,\n arrowEdge: true,\n presentationCompactAdaptation: true,\n contentWidth: true,\n contentHeight: true,\n ...ConditionallyIgnoredEventHandlers({\n onNativePopoverIsPresentedChange: true\n })\n }\n};\nexport default NativeComponentRegistry.get(nativeComponentName, () => __INTERNAL_VIEW_CONFIG);"], "mappings": "AAmBA,MAAMA,IAA0B,QAAQ,gEAAgE;AACxG,MAAM;AAAA,EACJ,mCAAAC;AACF,IAAI,QAAQ,yDAAyD;AACrE,IAAIC,IAAsB;AACnB,MAAMC,IAAyB;AAAA,EACpC,iBAAiB;AAAA,EACjB,kBAAkB;AAAA,IAChB,mCAAmC;AAAA,MACjC,kBAAkB;AAAA,IACpB;AAAA,EACF;AAAA,EACA,iBAAiB;AAAA,IACf,aAAa;AAAA,IACb,mBAAmB;AAAA,IACnB,UAAU;AAAA,IACV,WAAW;AAAA,IACX,+BAA+B;AAAA,IAC/B,cAAc;AAAA,IACd,eAAe;AAAA,IACf,GAAGF,EAAkC;AAAA,MACnC,kCAAkC;AAAA,IACpC,CAAC;AAAA,EACH;AACF;AACA,IAAOG,IAAQJ,EAAwB,IAAIE,GAAqB,MAAMC,CAAsB;", "names": ["NativeComponentRegistry", "ConditionallyIgnoredEventHandlers", "nativeComponentName", "__INTERNAL_VIEW_CONFIG", "OneNativePopoverNativeComponent_default"] }