[REGRESSION] Room actions not loading on tablet (#3061)

This commit is contained in:
Diego Mello 2021-04-14 13:03:58 -03:00 committed by GitHub
parent d71805347b
commit d555f19376
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -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 (
<TouchableOpacity
testID='room-header'
accessibilityLabel={title}
onPress={onPress}
onPress={handleOnPress}
style={styles.container}
disabled={tmid}
hitSlop={HIT_SLOP}