mirror of
https://github.com/zhigang1992/devhub.git
synced 2026-06-10 23:39:22 +08:00
22 lines
620 B
TypeScript
22 lines
620 B
TypeScript
declare module 'react-native-safari-view' {
|
|
import { EmitterSubscription } from 'react-native'
|
|
|
|
export type Event = 'onShow' | 'onDismiss'
|
|
export interface SafaryOptions {
|
|
url: string
|
|
readerMode?: boolean
|
|
tintColor?: string
|
|
barTintColor?: string
|
|
fromBottom?: boolean
|
|
}
|
|
|
|
export function show(options: SafaryOptions): void
|
|
export function dismiss(): void
|
|
export function isAvailable(): Promise<boolean>
|
|
export function addEventListener(
|
|
event: Event,
|
|
listener: () => any,
|
|
): EmitterSubscription
|
|
export function removeEventListener(event: Event, listener: () => any): void
|
|
}
|