[REGRESSION] Room actions not loading on tablet (#3061)
This commit is contained in:
parent
d71805347b
commit
d555f19376
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue