UNPKG

one

Version:

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

8 lines (7 loc) • 2.24 kB
{ "version": 3, "sources": ["src/platform/specs/OneNativeReservedRegionsProviderNativeComponent.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 onNativeReservedRegionsChange?: DirectEventHandler<Readonly<{\n width: Double;\n height: Double;\n regions: {\n id: string;\n kind: string;\n x: Double;\n y: Double;\n width: Double;\n height: Double;\n marginTop: Double;\n marginLeft: Double;\n marginBottom: Double;\n marginRight: Double;\n isActive: boolean;\n }[];\n }>>;\n}\nconst NativeComponentRegistry = require('react-native/Libraries/NativeComponent/NativeComponentRegistry');\nconst {\n ConditionallyIgnoredEventHandlers\n} = require('react-native/Libraries/NativeComponent/ViewConfigIgnore');\nlet nativeComponentName = 'OneNativeReservedRegionsProvider';\nexport const __INTERNAL_VIEW_CONFIG = {\n uiViewClassName: \"OneNativeReservedRegionsProvider\",\n directEventTypes: {\n topNativeReservedRegionsChange: {\n registrationName: \"onNativeReservedRegionsChange\"\n }\n },\n validAttributes: {\n ...ConditionallyIgnoredEventHandlers({\n onNativeReservedRegionsChange: true\n })\n }\n};\nexport default NativeComponentRegistry.get(nativeComponentName, () => __INTERNAL_VIEW_CONFIG);"], "mappings": "AAwBA,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,gCAAgC;AAAA,MAC9B,kBAAkB;AAAA,IACpB;AAAA,EACF;AAAA,EACA,iBAAiB;AAAA,IACf,GAAGF,EAAkC;AAAA,MACnC,+BAA+B;AAAA,IACjC,CAAC;AAAA,EACH;AACF;AACA,IAAOG,IAAQJ,EAAwB,IAAIE,GAAqB,MAAMC,CAAsB;", "names": ["NativeComponentRegistry", "ConditionallyIgnoredEventHandlers", "nativeComponentName", "__INTERNAL_VIEW_CONFIG", "OneNativeReservedRegionsProviderNativeComponent_default"] }