question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

useInteractionManager does not work with react-navigation

See original GitHub issue

Using react-navigation v4, providing useInteractionManager={true} option, the arrow and the cloned child gets displayed on the right side of the screen. The content is in the correct position.

Screenshot 2020-05-04 at 16 39 33

I worked around by

 useEffect(() => {
    setTimeout(() => setSmsTooltipVisible(true), 500);
  }, []);

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jasongaarecommented, May 6, 2020

sorry, just noticed you mentioned react-navigation v4… perhaps then…

import { NavigationEvents } from 'react-navigation';

// wherever your component is rendered
<NavigationEvents onDidFocus={() => setTooltipVisible(true)} />

0reactions
vmaarkcommented, Jul 6, 2020

thanks @jasongaare , it did solve my issue!

Read more comments on GitHub >

github_iconTop Results From Across the Web

InteractionManager.runAfterInteractions() not working properly ...
Same issue here, It works when i used react native modal insight componentDidMount, but it doest work on StackNavigator, If i use single...
Read more >
Do you use InteractionManager and is the UI not bad ? (Slow ...
When a new screen is pushed, React Navigation will initially render it off-screen and animate it into place afterward.
Read more >
Do you use InteractionManager and is the UI not bad ... - Reddit
The Problem: When a new screen is pushed, React Navigation will initially render it off-screen and animate it into place afterward.
Read more >
Fixing common performance problems in React Navigation
We started by running a few tests with React Navigation: adding the navigation state to Redux, pushing new screens onto a stack, handling...
Read more >
Troubleshooting | React Navigation
Troubleshooting. This section attempts to outline issues that users frequently encounter when first getting accustomed to using React Navigation.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found