diff --git a/native/profile/user-relationship-tooltip-modal.react.js b/native/profile/user-relationship-tooltip-modal.react.js --- a/native/profile/user-relationship-tooltip-modal.react.js +++ b/native/profile/user-relationship-tooltip-modal.react.js @@ -127,18 +127,16 @@ ... }; -class UserRelationshipTooltipButton extends React.PureComponent { - render() { - return ( - - - - ); - } +function UserRelationshipTooltipButton(props: Props): React.Node { + const { navigation } = props; + + const { goBackOnce } = navigation; - onPress = () => { - this.props.navigation.goBackOnce(); - }; + return ( + + + + ); } const UserRelationshipTooltipModal: React.ComponentType<