React-native-screens: Change header height in headerStyle

Created on 15 Oct 2020  路  3Comments  路  Source: software-mansion/react-native-screens

Is your feature request related to a problem? Please describe.
I would to be able to change header height. Is it considered in future version?

Describe the solution you'd like
I would like to be able to change it in headerStyle, currently I can only change the backgroundColor.

Describe alternatives you've considered
Alternatively let us use custom component to replace the whole header.

Most helpful comment

I will close this issue then. Feel free to comment if you have any questions.

All 3 comments

react-native-screens uses native components for the header and does not provide a method to change its height. You can use headerShown: false option to hide the native header and provide your own, custom one. Can I help you any more with this?

react-native-screens uses native components for the header and does not provide a method to change its height. You can use headerShown: false option to hide the native header and provide your own, custom one. Can I help you any more with this?

Right now I'm going with that approach and just use FlatList ListHeaderComponent to render custom header. Thank you.

I will close this issue then. Feel free to comment if you have any questions.

Was this page helpful?
0 / 5 - 0 ratings