UNPKG

one

Version:

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

8 lines (7 loc) • 2.08 kB
{ "version": 3, "sources": ["src/platform/specs/OneNativeScrollViewReaderNativeComponent.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 { HostComponent, ViewProps } from 'react-native';\nimport type { Double } from 'react-native/Libraries/Types/CodegenTypes';\nimport codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';\nimport codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands';\nimport type * as React from 'react';\ninterface NativeProps extends ViewProps {}\ninterface NativeCommands {\n scrollTo(viewRef: React.ElementRef<HostComponent<NativeProps>>, scrollID: string, hasAnchor: boolean, anchorX: Double, anchorY: Double): void;\n}\nconst NativeComponentRegistry = require('react-native/Libraries/NativeComponent/NativeComponentRegistry');\nconst {\n dispatchCommand\n} = require(\"react-native/Libraries/ReactNative/RendererProxy\");\nlet nativeComponentName = 'OneNativeScrollViewReader';\nexport const __INTERNAL_VIEW_CONFIG = {\n uiViewClassName: \"OneNativeScrollViewReader\",\n validAttributes: {}\n};\nexport default NativeComponentRegistry.get(nativeComponentName, () => __INTERNAL_VIEW_CONFIG);\nexport const Commands = {\n scrollTo(ref, scrollID, hasAnchor, anchorX, anchorY) {\n dispatchCommand(ref, \"scrollTo\", [scrollID, hasAnchor, anchorX, anchorY]);\n }\n};"], "mappings": "AAWA,MAAMA,IAA0B,QAAQ,gEAAgE;AACxG,MAAM;AAAA,EACJ,iBAAAC;AACF,IAAI,QAAQ,kDAAkD;AAC9D,IAAIC,IAAsB;AACnB,MAAMC,IAAyB;AAAA,EACpC,iBAAiB;AAAA,EACjB,iBAAiB,CAAC;AACpB;AACA,IAAOC,IAAQJ,EAAwB,IAAIE,GAAqB,MAAMC,CAAsB;AACrF,MAAME,IAAW;AAAA,EACtB,SAASC,GAAKC,GAAUC,GAAWC,GAASC,GAAS;AACnD,IAAAT,EAAgBK,GAAK,YAAY,CAACC,GAAUC,GAAWC,GAASC,CAAO,CAAC;AAAA,EAC1E;AACF;", "names": ["NativeComponentRegistry", "dispatchCommand", "nativeComponentName", "__INTERNAL_VIEW_CONFIG", "OneNativeScrollViewReaderNativeComponent_default", "Commands", "ref", "scrollID", "hasAnchor", "anchorX", "anchorY"] }