one
Version:
One is a React framework for web, iOS, and Android apps.
18 lines (13 loc) • 404 B
text/typescript
import type { HybridObject } from 'react-native-nitro-modules'
export type ShareItemType = 'text' | 'url' | 'file'
export interface ShareItem {
type: ShareItemType
value: string
}
export interface ShareResult {
completed: boolean
activityType?: string
}
export interface OneShare extends HybridObject<{ ios: 'swift'; android: 'kotlin' }> {
share(items: ShareItem[]): Promise<ShareResult>
}