one
Version:
One is a React framework for web, iOS, and Android apps.
8 lines (7 loc) • 2.89 kB
Source Map (JSON)
{
"version": 3,
"sources": ["src/platform/specs/OneNativeUiMapNativeComponent.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';\ntype UiMapMarker = Readonly<{\n id: string;\n title: string;\n latitude: Double;\n longitude: Double;\n tint: string;\n}>;\ninterface NativeProps extends ViewProps {\n latitude: Double;\n longitude: Double;\n zoom: Double;\n markers: ReadonlyArray<UiMapMarker>;\n overlays: string;\n onNativeUiMapCameraMove?: DirectEventHandler<Readonly<{\n latitude: Double;\n longitude: Double;\n zoom: Double;\n }>>;\n onNativeUiMapMarkerClick?: DirectEventHandler<Readonly<{\n id: string;\n }>>;\n onNativeUiMapClick?: DirectEventHandler<Readonly<{\n latitude: Double;\n longitude: Double;\n }>>;\n}\nconst NativeComponentRegistry = require('react-native/Libraries/NativeComponent/NativeComponentRegistry');\nconst {\n ConditionallyIgnoredEventHandlers\n} = require('react-native/Libraries/NativeComponent/ViewConfigIgnore');\nlet nativeComponentName = 'OneNativeUiMap';\nexport const __INTERNAL_VIEW_CONFIG = {\n uiViewClassName: \"OneNativeUiMap\",\n directEventTypes: {\n topNativeUiMapCameraMove: {\n registrationName: \"onNativeUiMapCameraMove\"\n },\n topNativeUiMapMarkerClick: {\n registrationName: \"onNativeUiMapMarkerClick\"\n },\n topNativeUiMapClick: {\n registrationName: \"onNativeUiMapClick\"\n }\n },\n validAttributes: {\n latitude: true,\n longitude: true,\n zoom: true,\n markers: true,\n overlays: true,\n ...ConditionallyIgnoredEventHandlers({\n onNativeUiMapCameraMove: true,\n onNativeUiMapMarkerClick: true,\n onNativeUiMapClick: true\n })\n }\n};\nexport default NativeComponentRegistry.get(nativeComponentName, () => __INTERNAL_VIEW_CONFIG);"],
"mappings": "AA+BA,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,0BAA0B;AAAA,MACxB,kBAAkB;AAAA,IACpB;AAAA,IACA,2BAA2B;AAAA,MACzB,kBAAkB;AAAA,IACpB;AAAA,IACA,qBAAqB;AAAA,MACnB,kBAAkB;AAAA,IACpB;AAAA,EACF;AAAA,EACA,iBAAiB;AAAA,IACf,UAAU;AAAA,IACV,WAAW;AAAA,IACX,MAAM;AAAA,IACN,SAAS;AAAA,IACT,UAAU;AAAA,IACV,GAAGF,EAAkC;AAAA,MACnC,yBAAyB;AAAA,MACzB,0BAA0B;AAAA,MAC1B,oBAAoB;AAAA,IACtB,CAAC;AAAA,EACH;AACF;AACA,IAAOG,IAAQJ,EAAwB,IAAIE,GAAqB,MAAMC,CAAsB;",
"names": ["NativeComponentRegistry", "ConditionallyIgnoredEventHandlers", "nativeComponentName", "__INTERNAL_VIEW_CONFIG", "OneNativeUiMapNativeComponent_default"]
}