From e7833dbaf398a4fbcd112185ce15d047abbd3177 Mon Sep 17 00:00:00 2001 From: wlj136209 Date: Wed, 13 May 2020 10:21:36 +0800 Subject: [PATCH] fix: rollback device --- packages/device/demo/index.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/packages/device/demo/index.js b/packages/device/demo/index.js index e69de29b..07863e18 100644 --- a/packages/device/demo/index.js +++ b/packages/device/demo/index.js @@ -0,0 +1,19 @@ +// @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 });