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

not scroll in scrollview tag

Open Mrezagolbaba opened this issue 7 years ago • 14 comments

i want to use react-native-scrollable-tab-view for tab navigation in my code and i use Scrollview for scroll in but not working.

return( <ScrollView contentContainerStyle={{flex: 1}} > {this.renderHeader()} <View style={styles.baner}/> <View style={{flex: 1}}> <ScrollableTabView initialPage={2} tabBarBackgroundColor={them.white} tabBarActiveTextColor={them.black} tabBarInactiveTextColor={them.borderColor} tabBarUnderlineStyle={{backgroundColor:them.green}} > <MyRequest name='tab1' tabLabel='درخواستهای من' /> <Requests name='tab2' tabLabel='درخواست‌ها' /> < Suggestion name='tab3' tabLabel='پیشنهادها' /> <Message name=' tab4' tabLabel='پیام ها' /> </ScrollableTabView> </View> </ScrollView> )

Mrezagolbaba avatar Feb 02 '19 09:02 Mrezagolbaba

@Mrezagolbaba are you using this lib in RN 0.58? after the ScrollView breaking change?

malonguwa avatar Feb 05 '19 03:02 malonguwa

@malonguwa im using react native 0.57.8

Mrezagolbaba avatar Feb 05 '19 06:02 Mrezagolbaba

@malonguwa does this module not work with 0.58 since the breaking change? initially I couldn't get it to work on 0.58.4 but I've nested the tab content in a RN scrollview and seems to be working..

        <ScrollableTabView>
          <ScrollableTabBar/>
        <View tabLabel="%NAME%">
          <ScrollView>
            <Component />
          </ScrollView>
        </View>
      </ScrollableTabView>

andyr6381 avatar Feb 22 '19 06:02 andyr6381

Using RN 56.0, same problem. Not able to scroll in RTL(when the contents are more)

raghavendramogeraya avatar Feb 26 '19 09:02 raghavendramogeraya

"react-native": "0.59.2", same problem. The contents inside the tab are not visible as well.

  render() {
    return (
      <ScrollView>
        <View style={{ flex: 1 }}>
          <Text>abc</Text>
          <View style={{width: 200, height: 300, backgroundColor: 'blue' }}/>
          <ScrollableTabView locked scrollWithoutAnimation>
            <Home tabLabel='Home'/>
            <Text tabLabel='Tab #1'>My</Text>
            <Text tabLabel='Tab #2'>favorite</Text>
          </ScrollableTabView>
        </View>
      </ScrollView>
    );
  }

bbeckk avatar Mar 29 '19 12:03 bbeckk

"react-native": "0.59.2", same problem. The contents inside the tab are not visible as well.

  render() {
    return (
      <ScrollView>
        <View style={{ flex: 1 }}>
          <Text>abc</Text>
          <View style={{width: 200, height: 300, backgroundColor: 'blue' }}/>
          <ScrollableTabView locked scrollWithoutAnimation>
            <Home tabLabel='Home'/>
            <Text tabLabel='Tab #1'>My</Text>
            <Text tabLabel='Tab #2'>favorite</Text>
          </ScrollableTabView>
        </View>
      </ScrollView>
    );
  }

Same problem. U can fix it?

dinhtu0802 avatar Apr 02 '19 07:04 dinhtu0802

Me too

wublack avatar Apr 03 '19 08:04 wublack

Me too. I meet issue on ios. On android everything is ok

vantb9x avatar Apr 25 '19 15:04 vantb9x

Hi guys, you should use react-native-nested-scroll-view library and replace ScrollView by NestedScrollView from this package in ScrollableTabBar, you have to rewrite ScrollableTabView as well and remove all declarations for Android, so every declaration for iOS is correct for Android now. You can do this with patch-package for example or wait for fix from contributors 💃

bear-junior avatar May 01 '19 18:05 bear-junior

same problme, the ScrollableTabView can`t inside the ScrollView, it will lose height, so anyone fixed it?

liu-miao-miao avatar Aug 05 '19 01:08 liu-miao-miao

any fix for the above?

naiduasn avatar Sep 16 '19 05:09 naiduasn

any news?

jxintang avatar Sep 20 '19 15:09 jxintang

RN 0.61.2, it can't scroll the ScrollableTabView inside the ScrollView!!!!

Josin22 avatar Nov 08 '19 02:11 Josin22

I found a solution that ScrollableTabView replaces ScrollView, which means ScrollableTabView inside ScrollableTabView, its can be scroll.

Josin22 avatar Nov 13 '19 12:11 Josin22