mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-03-27 22:55:56 +08:00
Minor example page update
This commit is contained in:
@@ -54,7 +54,13 @@ class Example extends Component {
|
||||
render() {
|
||||
return (
|
||||
<View accessibilityRole='main' style={styles.root}>
|
||||
<Heading level='1' size='xlarge'>React Native for Web: examples</Heading>
|
||||
<Heading level='1' size='xlarge'>React Native Web</Heading>
|
||||
<Text>React Native Web takes the core components from <Text
|
||||
component="a" href="https://facebook.github.io/react-native/">React
|
||||
Native</Text> and brings them to the web. These components provide
|
||||
simple building blocks – touch and swipe handling, flexbox layout,
|
||||
scroll views – from which more complex components and apps can be
|
||||
constructed.</Text>
|
||||
|
||||
<Heading level='2' size='large'>Image</Heading>
|
||||
<Image
|
||||
@@ -194,7 +200,6 @@ class Example extends Component {
|
||||
|
||||
const styles = {
|
||||
root: {
|
||||
fontFamily: 'sans-serif',
|
||||
maxWidth: '600px',
|
||||
margin: '0 auto'
|
||||
},
|
||||
|
||||
@@ -3,5 +3,6 @@
|
||||
<title>React Native for Web</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="description" content="The core React Native components adapted and expanded upon for the web">
|
||||
<style>html { font-family: sans-serif; }</style>
|
||||
<div id="react-root"></div>
|
||||
<script src="/example.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user