8 lines
166 B
TypeScript
8 lines
166 B
TypeScript
import { DeviceEventEmitter } from 'react-native'
|
|
|
|
export const TOAST = 'toast'
|
|
|
|
export function toast(value: string) {
|
|
DeviceEventEmitter.emit(TOAST, { value })
|
|
}
|