Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/setapp-io/setapp-react-native
https://github.com/setapp-io/setapp-react-native
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/setapp-io/setapp-react-native
- Owner: setapp-io
- License: apache-2.0
- Created: 2021-10-30T17:45:38.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-15T14:02:09.000Z (over 2 years ago)
- Last Synced: 2024-04-24T20:28:03.179Z (9 months ago)
- Language: Java
- Size: 394 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# setapp
React native library for setapp application
## Installation
```sh
npm install @setapp.io/setapp
```## Usage
#### Get int value
```js
import { getInt, getIntOrNull } from "setapp";// ...
const result: number = await getInt('YOUR_KEY_HERE', -1);
const result: number | null = await getIntOrNull('YOUR_KEY_HERE');
```#### Get long value
```js
import { getLong, getLongOrNull } from "setapp";// ...
const result: number = await getLong('YOUR_KEY_HERE', -1);
const result: number | null = await getLongOrNull('YOUR_KEY_HERE');
```#### Get float value
```js
import { getFloat, getFloatOrNull } from "setapp";// ...
const result: number = await getFloat('YOUR_KEY_HERE', -1);
const result: number | null = await getFloatOrNull('YOUR_KEY_HERE');
```#### Get string value
```js
import { getString, getStringOrNull } from "setapp";// ...
const result = await getString('YOUR_KEY_HERE', '');
const result = await getStringOrNull('YOUR_KEY_HERE');
```#### Get boolean value
```js
import { getBoolean, getBooleanOrNull } from "setapp";// ...
const result: boolean = await getBoolean('YOUR_KEY_HERE', false);
const result: boolean | null = await getBooleanOrNull('YOUR_KEY_HERE');
```## License
Apache License Version 2.0