@tomatoes/mobile
v1.0.6
Published
Mobile terminal function
Downloads
8
Maintainers
Readme
tomatoes-mobile
Mobile end tools
Features
- Interactive operation of vConsole & edura
- Judge the operating environment
- ...
Installing
$ yarn add @tomatoes/mobile
Usage
import { addVconsole, addEruda, isIos } from "@tomatoes/mobile";
/**
* options:
* It can be called by five finger touch
*/
addVconsole(alwaysShow?: boolean): void;
/**
* options:
* - Get request parameter add [eruda = true] to call
* - LocalStorage sets the key of [active-eruda] to call
*/
addEruda(alwaysShow?: boolean): void;
/**
* Is itIOS
*/
isIos(): boolean;