ptomasroos / react-native-scrollable-tab-view

Tabbed navigation that you can swipe between, each tab can have its own ScrollView and maintain its own scroll position between swipes. Pleasantly animated. Customizable tab bar
https://www.npmjs.com/package/react-native-scrollable-tab-view
6.94k stars 2.28k forks source link

active tab fontFaimly not working for android #1084

Open eramudeep opened 4 years ago

eramudeep commented 4 years ago

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
noddy1996 commented 4 years ago

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.

Syahrul commented 4 years ago

setting fontWeight to normal should resolve your issue