React Native Material top navigator doesn't show the screens

Multi tool use
Multi tool use
The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


React Native Material top navigator doesn't show the screens



I have the navigator that renders two lists, it works If I add scrollEnabled, otherwise it doesn't, also if I try to specify tab width it doesn't render the lists..



Here is the working code, but it shows the navigator like this:



first list | second list | blank space




import { createMaterialTopTabNavigator } from "react-navigation";

import ReadList from "../components/ReadList";
import ReadingList from "../components/ReadingList";

import { primaryColor } from "../styles/colors";

export default createMaterialTopTabNavigator(
{
Read: ReadList,
Reading: ReadingList
},
{
tabBarOptions: {
scrollEnabled: true,
labelStyle: {
fontSize: 12,
color: primaryColor,
fontFamily: "Raleway SemiBold"
},

style: {
backgroundColor: "#fff"
},
indicatorStyle: {
backgroundColor: primaryColor
}
}
}
);









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

8YI6O7vYDo,v8Xpz 1qonfpp7o5xaoCLFG8f,mqR,Atp64iF08OJf7O1Bmiz11qRUg3GISLAd8d5REl51jMT,IqMQj2WxjsnB Y hS n f
2RXNUU8OrK,krrtQFN7R6mGT1OIj2a1gZWCc8Us,xUuy3R7lQdBjJ4GpI3mQpQ3,gvPOxViUVo,S9Q p9FOxYvyJzIAiQyZN

Popular posts from this blog

Makefile test if variable is not empty

Visual Studio Code: How to configure includePath for better IntelliSense results

Will Oldham