Skip to content

Instantly share code, notes, and snippets.

@JCaraballo113
Created February 14, 2017 03:57
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 JCaraballo113/c637e036a3154000b79280a7575fe1f5 to your computer and use it in GitHub Desktop.
Save JCaraballo113/c637e036a3154000b79280a7575fe1f5 to your computer and use it in GitHub Desktop.
import React from 'react';
import { View, Text } from 'react-native';
import { Card, CardSection } from './common';
const Comment = (props) => {
return (
<Card>
<CardSection>
<Text>{props.comment.author}</Text>
</CardSection>
<CardSection>
<Text style={{ flex: 1 }}>{props.comment.text}</Text>
</CardSection>
</Card>
);
};
export default Comment;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment