2.0.0-beta • Published 5 years ago
universal-getsysteminfosync v2.0.0-beta
getSystemInfoSync
Gets system information.
Supported
Install
$ npm install universal-getSystemInfoSync --saveor
$ npm install universal-api --saveUsage
import getSystemInfoSync from 'universal-getSystemInfoSync';
let res = getSystemInfoSync();You can also import from the big package:
import { getSystemInfoSync } from 'universal-api';Methods
getSystemInfoSync()
Return
| Property | Type | Description |
|---|---|---|
| pixelRatio | number | Device's pixel ratio |
| screenWidth | number | Screen width in px |
| screenHeight | number | Screen height in px |
| windowWidth | number | Available window width in px |
| windowHeight | number | Available window height in px |
| language | string | Language |
| version | string | version |
| platform | string | Client 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>
);2.0.0-beta
5 years ago