diff --git a/packages/device/demo/index.js b/packages/device/demo/index.js index e69de29b..1c62e51f 100644 --- a/packages/device/demo/index.js +++ b/packages/device/demo/index.js @@ -0,0 +1,20 @@ +/* eslint-disable import/no-extraneous-dependencies */ +// @ts-ignore +import { createElement, render } from 'rax'; +import DriverUniversal from 'driver-universal'; +import View from 'rax-view'; +import Text from 'rax-text'; +import { platform, appName, screenWidth, screenHeight } from '../src'; + +const App = () => { + return ( + + {platform} + {appName} + {screenWidth} + {screenHeight} + + ); +}; + +render(, document.body, { driver: DriverUniversal });