Last active
October 29, 2018 03:54
-
-
Save helielson/82a7bec38af94201b6db7f38fb9d22e6 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
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