Answer the question
In order to leave comments, you need to log in
What can I do to set the height of the component depending on the content in react native?
There are 2 standard components: View and Navigator in it. If the height for the View is not set, then the Navigator is not shown, if you set the height for the View, then the Navigator is visible.
How to make the height of the View be the same as in the Navigator? Now it looks like the Navigator is set to position: absolute.
I tried to insert a Text component into the View and everything works as expected - the View becomes the same height as the content inside, that is, as Text. How to put the same for Navigator?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question