Skip to content

Commit

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

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

0 comments on commit e7833db

Please sign in to comment.