Last active
February 10, 2017 15:29
-
-
Save mariodev12/fa35c081258be6831688e98726d4d9b2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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