one
Version:
One is a React framework for web, iOS, and Android apps.
8 lines (7 loc) • 2.21 kB
Source Map (JSON)
{
"version": 3,
"sources": ["src/platform/specs/OneNativeGeometryReaderNativeComponent.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 onNativeGeometryReaderChange?: DirectEventHandler<Readonly<{\n x: Double;\n y: Double;\n width: Double;\n height: Double;\n localX: Double;\n localY: Double;\n localWidth: Double;\n localHeight: Double;\n sizeWidth: Double;\n sizeHeight: Double;\n safeAreaTop: Double;\n safeAreaLeading: Double;\n safeAreaBottom: Double;\n safeAreaTrailing: Double;\n }>>;\n}\nconst NativeComponentRegistry = require('react-native/Libraries/NativeComponent/NativeComponentRegistry');\nconst {\n ConditionallyIgnoredEventHandlers\n} = require('react-native/Libraries/NativeComponent/ViewConfigIgnore');\nlet nativeComponentName = 'OneNativeGeometryReader';\nexport const __INTERNAL_VIEW_CONFIG = {\n uiViewClassName: \"OneNativeGeometryReader\",\n directEventTypes: {\n topNativeGeometryReaderChange: {\n registrationName: \"onNativeGeometryReaderChange\"\n }\n },\n validAttributes: {\n ...ConditionallyIgnoredEventHandlers({\n onNativeGeometryReaderChange: true\n })\n }\n};\nexport default NativeComponentRegistry.get(nativeComponentName, () => __INTERNAL_VIEW_CONFIG);"],
"mappings": "AAuBA,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,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", "OneNativeGeometryReaderNativeComponent_default"]
}