Open leon2835 opened 5 years ago
https://github.com/plimerence/react-native-scrollable-tab-view the Repositories can solve u problem, just set <ScrollableTabBar underlineStyle={{ width: 20, }} style={{ borderWidth: 0 }} {...props} />
the core code is fixUnderLine = { left: Animated.add(dynamicTabUnderline.left, Animated.divide(Animated.add(dynamicTabUnderline.width, new Animated.Value(-underLineWidth)), 2)), width: new Animated.Value(underLineWidth), };
Hi there, how can i maximize the width of underline following the label container. Thank You <ScrollableTabView renderTabBar={() => }
tabBarBackgroundColor="black"
tabBarActiveTextColor="white"
tabBarInactiveTextColor="white"
tabBarUnderlineStyle={{ height: 2, backgroundColor: "red" }}>