Create a gist now

Instantly share code, notes, and snippets.

@mariodev12 /App.js
Last active Feb 10, 2017

What would you like to do?
import React, {Component} from 'react'
import { Text, InputText, View, StyleSheet, Dimensions } from 'react-native'
const {width, height} = Dimensions.get('window')
export default class App extends Component {
render(){
<View style={styles.container}>
<InputText
style={styles.inputText}
/>
<ListView
style={styles.listView}
/>
</View>
}
}
const styles = StyleSheet({
inputText: {
height: 30,
width: width,
borderWidth: 1,
borderColor: '#cecece'
},
listView: {
flex: 1,
},
container: {
flex: 1
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment