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