From d555f1937695b57305d1b2cf65575049ab2b21ad Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Wed, 14 Apr 2021 13:03:58 -0300 Subject: [PATCH] [REGRESSION] Room actions not loading on tablet (#3061) --- app/containers/RoomHeader/RoomHeader.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/containers/RoomHeader/RoomHeader.js b/app/containers/RoomHeader/RoomHeader.js index 6715fc137..0f1ee472e 100644 --- a/app/containers/RoomHeader/RoomHeader.js +++ b/app/containers/RoomHeader/RoomHeader.js @@ -1,4 +1,4 @@ -import React from 'react'; +import React, { useCallback } from 'react'; import PropTypes from 'prop-types'; import { View, Text, StyleSheet, TouchableOpacity @@ -149,11 +149,13 @@ const Header = React.memo(({ ); } + const handleOnPress = useCallback(() => onPress(), []); + return (