@setapp.io/setapp
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

setapp

React native library for setapp application

Installation

npm install @setapp.io/setapp

Usage

Get int value

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

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

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

import { getString, getStringOrNull } from "setapp";

// ...
const result = await getString('YOUR_KEY_HERE', '');
const result = await getStringOrNull('YOUR_KEY_HERE');

Get boolean value

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

Package Sidebar

Install

npm i @setapp.io/setapp

Weekly Downloads

6

Version

1.0.1

License

Apache-2.0

Unpacked Size

48.5 kB

Total Files

32

Last publish

Collaborators

  • hakob91