react-native-scrollable-tab-view icon indicating copy to clipboard operation
react-native-scrollable-tab-view copied to clipboard

active tab fontFaimly not working for android

Open eramudeep opened this issue 5 years ago • 2 comments

Having some trouble with active tab style. its working fine with ios, but not on android

`<ScrollableTabView style={{ backgroundColor: color.black, paddingBottom: hasNotch && Platform.OS === "ios" ? 30 : 0, }} initialPage={selectedTabIndex} page={0} prerenderingSiblingsNumber={100} tabBarUnderlineStyle={{ backgroundColor: color.primaryColor }} tabBarTextStyle={{ fontFamily: "BrushUp", fontSize: 20 }} tabBarActiveTextColor={color.primaryColor} tabBarInactiveTextColor={color.white} renderTabBar={() => <ScrollableTabBar style={{ borderBottomWidth: 0 }} />} > {subMenus.map((val: any, index: any) => {

      return (
        <ScrollView key={index} tabLabel={val.name.toUpperCase()}>
          <Wallpaper />
          <Combination
            favItems={favItems}
            //isFav={favItems.includes(val.name)}
            showDetails={() => setShowDetails(!showDetails)}
            navigation={props.navigation}
            addToCart={async (item: any) => { 
            }}
          /> 
        </ScrollView>
      )
    })}
  </ScrollableTabView>`
Screenshot 2020-03-31 at 9 19 30 AM

eramudeep avatar Mar 31 '20 04:03 eramudeep

in this tab the active tab has font-weight is BOLD. I think which font is you are using that does not support the bold font. that's why you are seeing the normal font which tab is active.

noddy1996 avatar May 04 '20 06:05 noddy1996

setting fontWeight to normal should resolve your issue

Syahrul avatar Jun 03 '20 11:06 Syahrul