Created
April 13, 2018 15:51
-
-
Save seyna/f0f2174215c7b9f6b2321784672a4f84 to your computer and use it in GitHub Desktop.
for firebase practice
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'; | |
const styles = require('./Styles/styles.js') | |
import ReactNative from 'react-native'; | |
const { View, TouchableHighlight, Text } = ReactNative; | |
class ListItem extends Component { | |
render() { | |
return ( | |
<TouchableHighlight onPress={this.props.onPress}> | |
<View style={styles.li}> | |
<Text style={styles.liText}>{this.props.item.title}</Text> | |
</View> | |
</TouchableHighlight> | |
); | |
} | |
} | |
module.exports = ListItem; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment