Closed alexpchin closed 3 years ago
This bug was probably introduced at some point. This didn't use to happen. But I think there is no point in using it without the renderHeader
, a better option is to use the regular tab view.
It is probably easy to fix, I will try to see it later. Or you can open a PR :)
It's useful to have if you want to conditionally render a header. I think it has something to do with this PR?
https://github.com/PedroBern/react-native-collapsible-tab-view/pull/18/files
yes you are right, probably here.
Not sure, but maybe this will fix:
--- {renderHeader()}
+++ {renderHeader && renderHeader()}
Hmmm... I don't think so... as renderHeader
is defined by default? I think it's something to do with the value of translateY
on the Animated.View
@alexpchin released in v2.0.1 👍 thanks
I have a couple of pages that require tabs that do not require a header. I thought that the default of
renderHeader
was() => null
so passing no header would still display the tabs as if we were usingreact-native-tab-view
.However, if you omit
renderHeader
, the tabs do not show.