Page MenuHomePhabricator

D14110.id46506.diff
No OneTemporary

D14110.id46506.diff

diff --git a/native/tooltip/tooltip.react.js b/native/tooltip/tooltip.react.js
--- a/native/tooltip/tooltip.react.js
+++ b/native/tooltip/tooltip.react.js
@@ -172,10 +172,6 @@
class Tooltip extends React.PureComponent<
TooltipProps<BaseTooltipPropsType>,
> {
- componentDidMount() {
- Haptics.impactAsync();
- }
-
render(): React.Node {
const {
dimensions,
@@ -354,6 +350,10 @@
const { hideTooltip, ...rest } = props;
+ React.useEffect(() => {
+ Haptics.impactAsync();
+ }, []);
+
const { goBackOnce } = props.navigation;
const closeTooltip = React.useCallback(() => {
goBackOnce();

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 21, 9:48 PM (20 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2682941
Default Alt Text
D14110.id46506.diff (664 B)

Event Timeline