2.0.0-beta • Published 3 years ago

universal-getsysteminfosync v2.0.0-beta

Weekly downloads
2
License
BSD-3-Clause
Repository
-
Last release
3 years ago

getSystemInfoSync

npm npm

Gets system information.

Supported

Install

$ npm install universal-getSystemInfoSync --save

or

$ npm install universal-api --save

Usage

import getSystemInfoSync from 'universal-getSystemInfoSync';

let res = getSystemInfoSync();

You can also import from the big package:

import { getSystemInfoSync } from 'universal-api';

Methods

getSystemInfoSync()

Return

PropertyTypeDescription
pixelRationumberDevice's pixel ratio
screenWidthnumberScreen width in px
screenHeightnumberScreen height in px
windowWidthnumberAvailable window width in px
windowHeightnumberAvailable window height in px
languagestringLanguage
versionstringversion
platformstringClient platform
/**
 * iframe: true
 */
import React from 'react';
export default () => (
  <iframe style={{
      boxShadow: '0 2px 15px rgba(0,0,0,0.1)',
      width: '375px',
      height: '700px'
    }} src='https://herbox.online/p/109000004/app_1aKtEd7SK?previewZoom=100&view=preview&defaultPage=pages/universal-getsysteminfosync/index&topSlider=false'></iframe>
);