From b08f6ccc5fd74689c3534ee8a6f722ccc141809a Mon Sep 17 00:00:00 2001 From: wlj136209 Date: Tue, 19 May 2020 18:20:18 +0800 Subject: [PATCH] fix: addback demo --- packages/device/demo/index.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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 });