I was trying to create tabs with the code given below, but when rendered I was not able to click on tabs nor the component in tab was visible.
<View>
<Appbar.Header>
<Appbar.Action icon="home" />
<Appbar.Content title="Home" />
</Appbar.Header>
<Container>
<Tabs initialPage={0}>
<Tab heading={<TabHeading style={styles.tabs}><Text>Current Location</Text></TabHeading>} >
<CurrentLoc />
</Tab>
<Tab heading={<TabHeading style={styles.tabs}><Text>India</Text></TabHeading>} >
<IndiaStat />
</Tab>
</Tabs>
</Container>
</View>
@harshit741, had the same issue. try setting your view to flex: 1. or wrap your entire component into the container, instead of a view
Yeah, that worked. Thanks much.
Most helpful comment
@harshit741, had the same issue. try setting your view to flex: 1. or wrap your entire component into the container, instead of a view