Skip to content

Instantly share code, notes, and snippets.

@mariodev12
Last active February 10, 2017 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mariodev12/fa35c081258be6831688e98726d4d9b2 to your computer and use it in GitHub Desktop.
Save mariodev12/fa35c081258be6831688e98726d4d9b2 to your computer and use it in GitHub Desktop.
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