Skip to content

Commit

Permalink
fix: addback demo
Browse files Browse the repository at this point in the history
  • Loading branch information
wanglijie committed May 19, 2020
1 parent 4ce2393 commit b08f6cc
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions packages/device/demo/index.js
Original file line number Diff line number Diff line change
@@ -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 (
<View>
<Text>{platform}</Text>
<Text>{appName}</Text>
<Text>{screenWidth}</Text>
<Text>{screenHeight}</Text>
</View>
);
};

render(<App />, document.body, { driver: DriverUniversal });

0 comments on commit b08f6cc

Please sign in to comment.