UNPKG

one

Version:

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

22 lines (21 loc) • 904 B
// generated by bun run generate from the SwiftUI SDK and codegen/catalog.ts. // edit the generator or catalog, then regenerate. import type { HostComponent, ViewProps } from 'react-native' import type { Double } from 'react-native/Libraries/Types/CodegenTypes' import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent' import codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands' import type * as React from 'react' interface NativeProps extends ViewProps {} interface NativeCommands { scrollTo( viewRef: React.ElementRef<HostComponent<NativeProps>>, scrollID: string, hasAnchor: boolean, anchorX: Double, anchorY: Double ): void } export const Commands = codegenNativeCommands<NativeCommands>({ supportedCommands: ['scrollTo'], }) export default codegenNativeComponent<NativeProps>('OneNativeScrollViewReader')