Open candronikos opened 1 month ago
I believe this is happening in iOS also, unless I'm doing something wrong. I got no tabs after adding a TabBar
:
With this code:
<TabController
items={[
{ label: "First" },
{ label: "Second" },
{ label: "Third" },
]}
>
<TabController.TabBar activeBackgroundColor={Colors.blue30} />
<TabController.TabPage index={0}>
<Text blue20 text20>
Page 1!
</Text>
</TabController.TabPage>
<TabController.TabPage index={1} lazy>
<Text blue20 text20>
Page 2!
</Text>
</TabController.TabPage>
<TabController.TabPage index={2} lazy>
<Text blue20 text20>
Page 3!
</Text>
</TabController.TabPage>
</TabController>
But if I add containerStyle={{ height: 40 }}
, they appear:
RN 0.75.4, RNUI 7.32.0.
Description
The code below renders correctly in the web and I am able to scroll between them and move to the page corresponding to the item in the TabBar when clicked. The same goes for the Android implementation when running from my phone but the TabBar is not visible.
Related to
Steps to reproduce
Create an expo project and try running in both the web and android.
Expected behavior
I expected the TabBar to render on the bottom of the screen of my phone.
Actual behavior
TabBar is not visible at all but I am able to scroll between the tabs.
Code snippet
Environment
Affected platforms