mirror of
https://github.com/status-im/react-native-languages.git
synced 2025-01-27 16:34:54 +00:00
Bump version
This commit is contained in:
parent
95bd5561c5
commit
828ee9875d
22
index.d.ts
vendored
22
index.d.ts
vendored
@ -1,22 +1,22 @@
|
||||
declare module 'react-native-languages' {
|
||||
interface EventData {
|
||||
language: string
|
||||
languages: string[]
|
||||
language: string;
|
||||
languages: string[];
|
||||
}
|
||||
|
||||
type EventHandler = (eventData: EventData) => any
|
||||
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
|
||||
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[]
|
||||
export const language: string;
|
||||
export const languages: string[];
|
||||
|
||||
let Module: RNLanguagesModule
|
||||
let Module: RNLanguagesModule;
|
||||
|
||||
export default Module
|
||||
export default Module;
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "react-native-languages",
|
||||
"version": "3.0.1",
|
||||
"version": "3.0.2",
|
||||
"license": "MIT",
|
||||
"description": "React Native properties and methods related to the language of the device",
|
||||
"repository": "https://github.com/react-community/react-native-languages",
|
||||
|
Loading…
x
Reference in New Issue
Block a user