mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
8b1458af4f
* Add with-react-native-web example Showcase the required work to use [react-native-web](https://github.com/necolas/react-native-web) with Next.js. * Repair lint warnings
21 lines
401 B
JavaScript
21 lines
401 B
JavaScript
import React from 'react'
|
|
import { StyleSheet, Text, View } from 'react-native'
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
alignItems: 'center',
|
|
height: '100%',
|
|
justifyContent: 'center'
|
|
},
|
|
text: {
|
|
alignItems: 'center',
|
|
fontSize: 24
|
|
}
|
|
})
|
|
|
|
export default props => (
|
|
<View style={styles.container}>
|
|
<Text style={styles.text}>Welcome to Next.js!</Text>
|
|
</View>
|
|
)
|