-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flickering on first rendering #365
Comments
Getting this as well |
Getting the same issue as well, but setting |
I know it's been a while, but one way I'm exploring handling this flicker on first render (due to dynamic header height) is using a two-part rendering solution:
if (headerHeight === null) {
return (
<View>
<View onLayout={(e) => setHeaderHeight(e.nativeEvent.layout.height)}>
{renderHeader()}
</View>
<ActivityIndicator size="large" />
</View>
);
}
return (
<Tabs.Container
tabBarHeight={TAB_BAR_HEIGHT}
headerHeight={headerHeight}
...
>
{tabs}
</Tabs.Container> It's not perfect, but sufficient for my needs -- hope it helps 🙏 |
#394 might fix this, I released it as 7.0.1-beta.0 on npm. Please help test it for unwanted side effects and report back. Thanks! |
I have this strange flickering on the first rendering of the page, anyone knows what it is caused by?
Screenrecorder-2023-08-15-18-21-07-133.mp4
This is how i'm using it:
This is the header:
Currently using react-native-collapsible-tab-view 6.1.4
The text was updated successfully, but these errors were encountered: