Tab indicator randomly not displayed on first render
See original GitHub issueIs there an existing issue for this?
- I have searched the existing issues
Explain what you did
I’m using Tab and Tab view. Navigating in a view using the components.
Expected behavior
Indicator should be present from start.
Describe the bug
When the view (modal or component) opens, randomly, no indicator of the active tab is present.
Steps To Reproduce
Open the component with Tab and TabView.
Screenshots
https://user-images.githubusercontent.com/314901/159169896-8a223e24-6b95-4b60-afb9-37c8cd76a33b.mp4
Your Environment
"react-native": "0.66.0",
"@react-native-elements/base": "^4.0.0-rc.0",
"@react-native-elements/themed": "^4.0.0-rc.0",
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:10 (4 by maintainers)
Top Results From Across the Web
React Material Tabs indicator not showing on first load
When I first load a page / navigate to one of the tab routes, the correct tab is selected, but the indicator is...
Read more >Chart randomly does not render - Dash Python
I have a dashboard with several tabs and charts/tables. The tab that renders on initial page load has an array of five gauge...
Read more >4 Common render problems in Blender and how to solve them
From here, go to the processes tab and sort by memory. When you start to render you will see that Blender rise to...
Read more >Camera component - Unity - Manual
Unity ensures that when rendering your objects those which are completely outside of this frustum are not displayed. This is called Frustum Culling....
Read more >Display Options (3D viewer) - SideFX
The render tab only appears when viewing LOPs. ... All 3D handles, guides, grids, and selections are also not displayed for a clear...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello, the problem is still present in version 4.0.0-rc.7 on iOS only.
This temporary fix seems to work instead.
You can reproduce the error by simply running the snack in the documentation. Try to open and close the snack few times on iOS and you will notice the issue appear randomly, sooner or later
AFA I can remember, it’s because it don’t rerender after calculating container width, because I didn’t added state, instead I was using ref, so changing it might fix this.