Skip to content

Instantly share code, notes, and snippets.

@helielson
Last active October 29, 2018 03:54
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 helielson/82a7bec38af94201b6db7f38fb9d22e6 to your computer and use it in GitHub Desktop.
Save helielson/82a7bec38af94201b6db7f38fb9d22e6 to your computer and use it in GitHub Desktop.
class ProfileName extends React.Component {
componentDidMount() {
profileInfoViewed('ProfileName', this.props.profile);
}
render() {
return (
<View>
<Text>{this.profile.name}</Text>
</View>
);
}
}
export default createRefetchContainer(ProfileName, graphql`
fragment ProfileName_profile on Profile {
id
age
name
homeLocation {
title
}
}
`);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment