Skip to content

Instantly share code, notes, and snippets.

@seyna
Created April 13, 2018 15:51
Show Gist options
  • Save seyna/f0f2174215c7b9f6b2321784672a4f84 to your computer and use it in GitHub Desktop.
Save seyna/f0f2174215c7b9f6b2321784672a4f84 to your computer and use it in GitHub Desktop.
for firebase practice
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