Skip to content

[0.57.1] Android overflow doesn't register taps (touchable) in the "overflowed" area #21455

Closed

Description

@rborn

Environment

 React Native Environment Info:
    System:
      OS: macOS High Sierra 10.13.6
      CPU: x64 Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz
      Memory: 62.65 MB / 16.00 GB
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 10.9.0 - /usr/local/bin/node
      Yarn: 1.7.0 - ~/.npm-packages/bin/yarn
      npm: 6.0.1 - ~/.npm-packages/bin/npm
      Watchman: 4.7.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 11.4, macOS 10.13, tvOS 11.4, watchOS 4.3
      Android SDK:
        Build Tools: 21.1.2, 23.0.1, 23.0.2, 23.0.3, 24.0.1, 25.0.0, 25.0.1, 25.0.2, 25.0.3, 26.0.0, 26.0.1, 26.0.2, 26.0.3, 27.0.1, 27.0.2, 27.0.3, 28.0.2
        API Levels: 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28
    IDEs:
      Android Studio: 2.3 AI-162.4069837
      Xcode: 9.4.1/9F2000 - /usr/bin/xcodebuild
    npmPackages:
      react: 16.5.0 => 16.5.0 
      react-native: 0.57.1 => 0.57.1 

Description

The "new" overflow feature works great now except the fact that it doesn't register the taps on the outside area. That's Android only.

Reproducible Demo

<View
        style={{
        width: 50,
        height: 50,
        borderColor: 'blue',
        borderWidth: 2,
        overflow: 'visible'
    }}
>
    <TouchableOpacity style={{ width: 100, height: 100, backgroundColor: '#f006' }}>
        <Text>some button</Text>
    </TouchableOpacity>
</View>

Tap inside the blue square - works. Tap on the red square but outside the blue one - it doesn't

Am I doing something wrong?

Thank you 🤗

Activity

  1. YanouHD commented on Nov 9, 2018

    @YanouHD

    Same issue here ! Tried everything...

  2. taylorkline commented on Nov 14, 2018

    @taylorkline

    @rborn For the purposes of searching, can you please edit the title to include the keyword touchable, for searches that use RN terminology?

  3. changed the title [-][0.57.1] Android overflow doesn't register taps in the "overflowed" area[/-] [+][0.57.1] Android overflow doesn't register taps (toucheable) in the "overflowed" area[/+] on Nov 14, 2018
  4. YanouHD commented on Nov 15, 2018

    @YanouHD

    Typo, it's "Touchable" not "Toucheable"

  5. changed the title [-][0.57.1] Android overflow doesn't register taps (toucheable) in the "overflowed" area[/-] [+][0.57.1] Android overflow doesn't register taps (touchable) in the "overflowed" area[/+] on Nov 15, 2018
  6. rborn commented on Nov 15, 2018

    @rborn
    Author

    @YanvegHD 😅

  7. YanouHD commented on Nov 22, 2018

    @YanouHD

    No one ? 😞

  8. zacksleo commented on Dec 26, 2018

    @zacksleo

    Same issue

  9. summmmer commented on Jan 7, 2019

    @summmmer

    same issue

  10. arqex commented on Jan 19, 2019

    @arqex

    Same here, isn't it a workaround or an explanation?

  11. gasparteixeira commented on Jan 23, 2019

    @gasparteixeira

    Same here. RN 0.57.1

  12. Liqiankun commented on Feb 19, 2019

    @Liqiankun

    Overflowed area is not touchable on Android!

  13. 19 remaining items

  14. added
    Stale
    on May 3, 2020
  15. danielgindi commented on May 3, 2020

    @danielgindi
    Contributor

    No, bot, it's still pending #26374

  16. removed
    Stale
    on May 3, 2020
  17. lgenzelis commented on Jul 10, 2020

    @lgenzelis

    Still happening in RN 0.62 :(

  18. tickietackie commented on Sep 14, 2020

    @tickietackie

    Still not fixed. I'm also waiting for this. Can somebody explain how you changed the design to make it work in another way? I also really tried a lot now and cannot find a way to make get around this.

  19. kazzkiq commented on Sep 14, 2020

    @kazzkiq

    @tickietackie In my case I redesigned my entire component in a way that nothing would need to be pushed outside, causing overflow.

    Grab a pen and a paper, and try to re-imagine your layout in a way that the overflown element doesn't need to be.

  20. added
    Resolution: PR Submitted
    on Oct 30, 2020
  21. metawort commented on Jan 18, 2021

    @metawort

    Still happening in RN 0.63.3

  22. evelant commented on Feb 3, 2021

    @evelant

    Still broken. Just lost a good portion of a day to this one. It is intensely frustrating that there has been a PR open to fix this for 1.5 years with no movement. @safaiyeh any ideas on how we can get that PR merged and this 2+ year old frustrating platform inconsistency finally fixed?

  23. safaiyeh commented on Feb 4, 2021

    @safaiyeh
    Contributor

    Still broken. Just lost a good portion of a day to this one. It is intensely frustrating that there has been a PR open to fix this for 1.5 years with no movement. @safaiyeh any ideas on how we can get that PR merged and this 2+ year old frustrating platform inconsistency finally fixed?

    Thanks for bringing this up. I pinged them hopefully we can get this in, I’ll try to push it a bit more

  24. anhkieet commented on Mar 17, 2021

    @anhkieet

    Any updates on this issue. I am doing autocomplete textinput and facing the same issue

  25. YanouHD commented on Mar 23, 2021

    @YanouHD

    It's been YEARS since this issue was open.

    My workaround is thatI had to create a component with position: 'absolute' to get the 'overflow' effect on a touchable component.

    I can only advise you to do the same, this situation is so rare that no one will ever fix it.

    May your code work 🙏🏼

  26. added a commit that references this issue on Jan 14, 2022
  27. drmas commented on Sep 8, 2022

    @drmas

    Another work around that worked for me is to use TouchableOpacity from react-native-gesture-handler;

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

    BugPlatform: AndroidResolution: PR Submitted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions