Last active
October 29, 2018 03:54
-
-
Save helielson/362bb2d14bb41a8a6a8ca1de59cdbeba 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 { | |
name | |
...eventsProfileInfoViewedFragment @relay(mask: false) | |
} | |
`); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment