[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 PropTypes from 'prop-types';
|
||||||
import {
|
import {
|
||||||
View, Text, StyleSheet, TouchableOpacity
|
View, Text, StyleSheet, TouchableOpacity
|
||||||
|
@ -149,11 +149,13 @@ const Header = React.memo(({
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const handleOnPress = useCallback(() => onPress(), []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<TouchableOpacity
|
<TouchableOpacity
|
||||||
testID='room-header'
|
testID='room-header'
|
||||||
accessibilityLabel={title}
|
accessibilityLabel={title}
|
||||||
onPress={onPress}
|
onPress={handleOnPress}
|
||||||
style={styles.container}
|
style={styles.container}
|
||||||
disabled={tmid}
|
disabled={tmid}
|
||||||
hitSlop={HIT_SLOP}
|
hitSlop={HIT_SLOP}
|
||||||
|
|
Loading…
Reference in New Issue