UNPKG

one

Version:

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

8 lines (7 loc) • 2.11 kB
{ "version": 3, "sources": ["src/platform/specs/OneNativeSwiftPagerNativeComponent.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 } from 'react-native/Libraries/Types/CodegenTypes';\nimport codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';\ninterface NativeProps extends ViewProps {\n selection: string;\n acknowledgedEvent: Int32;\n revision: Int32;\n onNativePagerSelectionChange?: DirectEventHandler<Readonly<{\n selection: string;\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 = 'OneNativeSwiftPager';\nexport const __INTERNAL_VIEW_CONFIG = {\n uiViewClassName: \"OneNativeSwiftPager\",\n directEventTypes: {\n topNativePagerSelectionChange: {\n registrationName: \"onNativePagerSelectionChange\"\n }\n },\n validAttributes: {\n selection: true,\n acknowledgedEvent: true,\n revision: true,\n ...ConditionallyIgnoredEventHandlers({\n onNativePagerSelectionChange: true\n })\n }\n};\nexport default NativeComponentRegistry.get(nativeComponentName, () => __INTERNAL_VIEW_CONFIG);"], "mappings": "AAeA,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,+BAA+B;AAAA,MAC7B,kBAAkB;AAAA,IACpB;AAAA,EACF;AAAA,EACA,iBAAiB;AAAA,IACf,WAAW;AAAA,IACX,mBAAmB;AAAA,IACnB,UAAU;AAAA,IACV,GAAGF,EAAkC;AAAA,MACnC,8BAA8B;AAAA,IAChC,CAAC;AAAA,EACH;AACF;AACA,IAAOG,IAAQJ,EAAwB,IAAIE,GAAqB,MAAMC,CAAsB;", "names": ["NativeComponentRegistry", "ConditionallyIgnoredEventHandlers", "nativeComponentName", "__INTERNAL_VIEW_CONFIG", "OneNativeSwiftPagerNativeComponent_default"] }