one
Version:
One is a React framework for web, iOS, and Android apps.
44 lines (43 loc) • 1.68 kB
text/typescript
// generated by bun run generate from the SwiftUI SDK and codegen/catalog.ts.
// edit the generator or catalog, then regenerate.
import type { ColorValue, ViewProps } from 'react-native'
import type {
DirectEventHandler,
Int32,
Double,
} from 'react-native/Libraries/Types/CodegenTypes'
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent'
type NativeSheetDetent = Readonly<{ type: string; value: Double }>
interface NativeProps extends ViewProps {
isPresented: boolean
acknowledgedEvent: Int32
revision: Int32
presentationId: Int32
detents: ReadonlyArray<NativeSheetDetent>
fitToContents: boolean
selectedDetentType: string
selectedDetentValue: Double
acknowledgedDetentEvent: Int32
detentRevision: Int32
interactiveDismissDisabled: boolean
presentationDragIndicator: string
presentationBackground?: ColorValue
presentationBackgroundInteraction: string
presentationBackgroundInteractionDetentType: string
presentationBackgroundInteractionDetentValue: Double
presentationContentInteraction: string
presentationSizing: string
presentation: string
colorScheme: string
onNativeSheetIsPresentedChange?: DirectEventHandler<
Readonly<{ isPresented: boolean; eventCount: Int32; revision: Int32 }>
>
onNativeSheetDismiss?: DirectEventHandler<Readonly<{ revision: Int32 }>>
onNativeSheetDidDismiss?: DirectEventHandler<
Readonly<{ revision: Int32; presentationId: Int32 }>
>
onNativeSheetDetentChange?: DirectEventHandler<
Readonly<{ type: string; value: Double; eventCount: Int32; revision: Int32 }>
>
}
export default codegenNativeComponent<NativeProps>('OneNativeSheet')