mirror of
https://github.com/status-im/react-native-languages.git
synced 2025-01-30 09:55:52 +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' {
|
declare module 'react-native-languages' {
|
||||||
interface EventData {
|
interface EventData {
|
||||||
language: string
|
language: string;
|
||||||
languages: string[]
|
languages: string[];
|
||||||
}
|
}
|
||||||
|
|
||||||
type EventHandler = (eventData: EventData) => any
|
type EventHandler = (eventData: EventData) => any;
|
||||||
|
|
||||||
interface RNLanguagesModule {
|
interface RNLanguagesModule {
|
||||||
readonly language: string
|
readonly language: string;
|
||||||
readonly languages: string[]
|
readonly languages: string[];
|
||||||
addEventListener: (type: 'change', handler: EventHandler) => void
|
addEventListener: (type: 'change', handler: EventHandler) => void;
|
||||||
removeEventListener: (type: 'change', handler: EventHandler) => void
|
removeEventListener: (type: 'change', handler: EventHandler) => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const language: string
|
export const language: string;
|
||||||
export const languages: 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",
|
"name": "react-native-languages",
|
||||||
"version": "3.0.1",
|
"version": "3.0.2",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"description": "React Native properties and methods related to the language of the device",
|
"description": "React Native properties and methods related to the language of the device",
|
||||||
"repository": "https://github.com/react-community/react-native-languages",
|
"repository": "https://github.com/react-community/react-native-languages",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user