@linvix-sistemas/react-native-get-values
v1.1.2
Published
Get info.plist or strings.xml values for react native.
Downloads
21
Maintainers
Readme
@linvix-sistemas/react-native-get-values
Get info.plist or values/strings.xml values for react native.
Remember to add the key you want to recover in the info.plist file on iOS and in res/values/strings.xml on Android.
Installation
yarn add @linvix-sistemas/react-native-get-values
Usage
import { getKeyValue } from '@linvix-sistemas/react-native-get-values';
const result = await getKeyValue('your_key');
Typescript Override avaliable Keys
Create declaration (d.ts) a file with your avaliable keys.
declare module '@linvix-sistemas/react-native-get-values' {
type AvailableKeys = 'KEY1' | 'KEY2' | 'KEY3';
export function getKeyValue(key: AvailableKeys): Promise<string>;
}
License
MIT