Rajesh
Rajesh

Reputation: 3778

React Native multi line header title possible?

I was looking into supporting multiple lines (2) in the stack navigator header. I tried populating the header title using navigation options with a line break \n to push the contents after the line break to the next line. But instead, react native is showing elipsis ..., may be since the total length of the title exceeds the permissible limit. Is there a way to support 2 lines in the header title, like shown below?

Big title
small title

Upvotes: 1

Views: 1083

Answers (1)

rafaelfndev
rafaelfndev

Reputation: 739

Like this?

enter image description here

This App do this (https://play.google.com/store/apps/details?id=com.wibblystuff.gear)

You can see source on GitHub https://github.com/satya164/PocketGear

I don't know what exactly file is, but this project can help you :D

Upvotes: 1

Related Questions