23 lines
539 B
TypeScript
Raw Normal View History

2018-11-16 11:41:46 -02:00
declare module 'react-native-languages' {
interface EventData {
language: string
languages: string[]
}
type EventHandler = (eventData: EventData) => any
interface RNLanguagesModule {
readonly language: string
readonly languages: string[]
addEventListener: (type: 'change', handler: EventHandler) => void
removeEventListener: (type: 'change', handler: EventHandler) => void
}
export const language: string
export const languages: string[]
let Module: RNLanguagesModule
export default Module
}