id | title | sidebar_label |
---|---|---|
runtime |
ReNative Runtime |
Runtime |
ReNative provides runtime SDK library to support multi-platform development
import { Api } from 'renative'
import { Api } from 'renative'
Api.formFactor === 'mobile'
possible values: mobile
, tv
, watch
, desktop
, browser
returns string value of highest priority form factor
import {
Api,
IOS,
ANDROID,
ANDROID_TV,
ANDROID_WEAR,
WEB,
TIZEN,
TIZEN_MOBILE,
TVOS,
WEBOS,
MACOS,
WINDOWS,
TIZEN_WATCH,
KAIOS,
FIREFOX_OS,
FIREFOX_TV
} from 'renative'
Api.platform === ANDROID_TV
returns string value of current platform
Retruns true if specific platform matches
import { isAndroid } from 'renative'
isAndroid()
import { isAndroidtv } from 'renative'
isAndroidtv()
import { isAndroidwear } from 'renative'
isAndroidwear()
import { isIos } from 'renative'
isIos()
import { isTvos } from 'renative'
isTvos()
import { isWeb } from 'renative'
isWeb()
import { isWebos } from 'renative'
isWebos()
import { isTizen } from 'renative'
isTizen()
import { isTizenwatch } from 'renative'
isTizenwatch()
import { isTizenmobile } from 'renative'
isTizenmobile()
import { isMacos } from 'renative'
isMacos()
import { isWindows } from 'renative'
isWindows()
import { isFirefoxos } from 'renative'
isFirefoxos()
import { isFirefoxtv } from 'renative'
isFirefoxtv()
import { isKaios } from 'renative'
isKaios()
Returns true if specific form factor matches
import { isBrowser } from 'renative'
isBrowser()
returns true
for platforms: web
import { isDesktop } from 'renative'
isDesktop()
returns true
for platforms: macos
, windows
import { isMobile } from 'renative'
isMobile()
returns true
for platforms: ios
, android
, tizenmobile
, firefoxos
, kaios
import { isTv } from 'renative'
isTv()
returns true
for platforms: androidtv
, tvos
, tizen
, webos
, firefoxtv
import { isWatch } from 'renative'
isWatch()
returns true
for platforms: androidwear
, tizenwatch