Could we separate the renderHeader for the bool and function?
https://github.com/Traviskn/react-router-native-stack/blob/c6a0e3a7e09f9b7d67db498853c60784f662685c/lib/Stack.js#L15
I think it would be more explicit if there was a different property for rendering the default header and renderHeader. The common way would be to have a prop header for the boolean and the renderHeader prop handle the render header function. We could also have a HeaderComponent prop to pass a component as the header.
-
Example of
headerprop as a boolean -
Example of
renderHeaderprop as a function -
Example of
HeaderComponentprop as node
So we would potentially have 3 properties to pass the header:
header: bool,
renderHeader: func,
HeaderComponent: node
I think this is a good idea! My implementation of the header is still incomplete. I am working on it on the header branch and am getting closer to having a working implementation
I figured, I'm here to help. I'm using your header branch with some changes to re-create the same header as Apple has in the settings app, with the multiple animations (fade in/out on back button, translation/color change of header to become the back button, etc)

Pretty cool stuff what we can do with this header branch.
Nice! I appreciate the help 😄
@Traviskn @gabrielbull I love ❤️ this module! I'm really keen to get the header branch into a proper master state so I we can use it for our project at work. How can I help? Is there a to-do list somewhere of what's missing?
Thanks!
Unfortunately I haven't had much time to work on this module 😞 I'm not sure if I will have time to get my header branch into a working state, but I'd be open to any PRs that implement header transitions!
@Traviskn Life happens, no worries! Here's my take on header/footer transitions: https://github.com/Traviskn/react-router-native-stack/pull/35 😄