Skip to content

after upgrade from version 5.4.25 to 6.6.1 the viewPager blocked the scroll of parent flatList in ios #948

Closed

Description

@gallavie

Environment

react-native 0.75
viewPager 6.6.1
ios 17.5

Description

i have flatlist and i render in header the viewPager.
when i use version 5.4.25 everything worked prefect in ios and android i can scroll the flatlist up and down from any where.
but after upgrade to version 6.6.1 the viewPager worked but i cant scroll the flatlist up or down from viewPager header.
is happen only in ios and i think is related to element UIPageViewController in ios.

Reproducible Demo

Activity

  1. ExxEss commented on Dec 14, 2024

    @ExxEss

    I got the same issue

  2. JavaGalaxy commented on Dec 15, 2024

    @JavaGalaxy

    Encountered similar issue with scroll. had to downgrde to 6.1.4:
    react-native-pager-view": "6.1.4",

  3. jacolack commented on Dec 28, 2024

    @jacolack

    See #722

  4. FlashGameDev commented on Jan 8, 2025

    @FlashGameDev

    Running into the same issue. PagerView inside of a ScrollView consumes all vertical scrolling gestures/events. Even when setting PagerView to

    orientation="horizontal"

    Even if i disable ViewPager

    scrollEnabled={false}

    It still will not let the ScrollView get any vertical touch gestures. I tried downgrading to 6.1.4 and it won't compile with react 0.76.

    Please help!!

  5. JavaGalaxy commented on Jan 8, 2025

    @JavaGalaxy

    Running into the same issue. PagerView inside of a ScrollView consumes all vertical scrolling gestures/events. Even when setting PagerView to

    orientation="horizontal"

    Even if i disable ViewPager

    scrollEnabled={false}

    It still will not let the ScrollView get any vertical touch gestures. I tried downgrading to 6.1.4 and it won't compile with react 0.76.

    Please help!!

    I see you tried 6.1.4 with 0.76
    The only thing worked for me was 6.1.4 with 0.76.3 ( I don't know if subversion makes any difference, but may be worth a shot?!)

  6. FlashGameDev commented on Jan 8, 2025

    @FlashGameDev

    I also tried 7.0.0-rc.0 suggested in another post. Both give me xcode compile errors on 0.76.5

    /ios/Pods/Headers/Public/RCT-Folly/folly/Optional.h:667:10 'folly/experimental/coro/Coroutine.h' file not found

    what I don't get is that there appears to be a fix by someone in 2023 and it was just never pulled in? This github has several recent issues with this exact problem.

    #734 claims to fix it and the comments suggest that it does. I've never had to manually patch something before. I assume if I ever need to rebuild my node_modules from scratch that I have to reapply this fix each time?

    Update: just tried to apply the patch but the code has changed so much since then it doesn't compile anymore. What a disaster.

  7. dprevost-LMI commented on Feb 22, 2025

    @dprevost-LMI

    I would suggest trying this patch: #972 (comment), or this better patch, while waiting for a fix

  8. MrRefactor commented on May 30, 2025

    @MrRefactor
    Contributor

    Closing, 6.8.1 should fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions