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

Can't scroll content of ScrollableTabView inside ScrollView on Android

Open areeb111 opened this issue 9 years ago • 16 comments

Hello, I have a problem with scrolling content of <ScrollableTabView> which is nested inside <ScrollView> on Android only, This feature works fine in iOS.

  • Screenshots attached.
  • React Native v0.46
  • react-native-scrollable-tab-view v0.7.4

aug-09-2017 15-51-28

areeb111 avatar Aug 09 '17 12:08 areeb111

Hi, I had the same issue only on Android also, my config was

  • "react-native": "0.47.2",
  • "react-native-scrollable-tab-view": "0.6.0"

Updating to "react-native-scrollable-tab-view": "0.7.4" solved it. I guess updating you RN version may solve the issue @areeb111

sylvain75 avatar Sep 01 '17 04:09 sylvain75

Hi, @areeb111 did you solve that issue. because i have the same problem with ScrollableTabView.

And i am using the latest version of react-native-scrollable-tab-view

vikas17 avatar Sep 23 '17 13:09 vikas17

@vikas17 Hi, Still have the same problem even with RN 0.48, I have made a workaround to check the maximum number of items inside the tab and set the height to the scroll-tab-view statically. So in that way i don't need to scroll vertically in Android.

areeb111 avatar Sep 23 '17 14:09 areeb111

Hi @areeb111 thanks for help but i have follow https://github.com/tibbus/react-native-scrollable-tab-view . for collapsable Tabbar and it work like a charm.

vikas17 avatar Sep 25 '17 06:09 vikas17

I have same issue both android and ios my hierarchy is: ScrollView -> ScrollableTabView -> ListView ScrollableTabView is inside ScrollView and ListView is inside ScrollableTabView

kaanoner3 avatar Jan 05 '18 17:01 kaanoner3

Hi, @kaanoner3 i got the same problem . have u fixed it?

Ekhui avatar Mar 09 '18 08:03 Ekhui

Hi, @areeb111 i got the same problem . have u fixed it?

Ekhui avatar Mar 14 '18 02:03 Ekhui

+1

tandat2209 avatar Jul 16 '18 15:07 tandat2209

Wrapper of your ScrollableTabView should have style={{ flex: 1 }}

vdpdev avatar Jul 16 '18 18:07 vdpdev

"react-native": "0.57.8",
"react-native-scrollable-tab-view": "^0.10.0",

still not working. +1

wynn-123 avatar Apr 16 '19 10:04 wynn-123

"react-native-scrollable-tab-view": "^0.10.0"

still not working too🤔

I hotfixed with the following code.

<ScrollableTabView style={{ height: contentsHeight }}>
  <ScrollableTabViewContent
    onLayout={event => {
      const { height } = event.nativeEvent.layout;
      this.setState({ contentsHeight: height });
    }}
  />
</ScrollableTabView>

nabettu avatar Sep 03 '19 04:09 nabettu

Its not working because we're using Android Pager which can't work with nested ScrollView's it needs to be rewritten with a ScrollView instead to support nesting

ptomasroos avatar Sep 04 '19 06:09 ptomasroos

@nabettu Did u get the fix? I am also using the same version, facing the same issue

sundarbee avatar Nov 13 '19 08:11 sundarbee

i can't scroll tab content on android, but on ios it working well. how to i scroll my list data for each tab? seem it conflic with horizontal scroll of scrollabletabview.

phonganhhung9xtb avatar Nov 20 '19 02:11 phonganhhung9xtb

@phonganhhung9xtb set static height for scrollabletabview

sundarbee avatar Nov 21 '19 10:11 sundarbee

Has anyone fixed that ? on IOS it working well but Android not work

  • ScrollableTabView : 1.0.0 I want vertical scroll of scrollabletabview.

bachbonglong avatar Aug 11 '20 09:08 bachbonglong