Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android: Text component not selectable when removeClippedSubviews #27107

Closed
cristianoccazinsp opened this issue Nov 4, 2019 · 6 comments
Closed
Labels
Bug Platform: Android Android applications. Resolution: Locked This issue was locked by the bot.

Comments

@cristianoccazinsp
Copy link
Contributor

React Native version:

System:
    OS: macOS Mojave 10.14.6
    CPU: (4) x64 Intel(R) Core(TM) i5-6267U CPU @ 2.90GHz
    Memory: 22.99 MB / 8.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 10.15.3 - /usr/local/bin/node
    npm: 6.12.0 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
    Android SDK:
      API Levels: 28
      Build Tools: 28.0.3
  IDEs:
    Android Studio: 3.4 AI-183.6156.11.34.5522156
    Xcode: 11.2/11B52 - /usr/bin/xcodebuild
  npmPackages:
    react: 16.11.0 => 16.11.0 
    react-native: 0.61.3 => 0.61.3
  npmGlobalPackages:
    create-react-native-app: 2.0.2
    create-react-native-module: 0.10.2
    react-native-cli: 2.0.1

Steps To Reproduce

  1. Render a <Text selectable={true}>test</Text> component inside a ScrollView with removeClippedSubviews={true} on Android
  2. Try to copy paste text. Text is not selectable by long pressing

Describe what you expected to happen:
Text should be selectable regardless of removeClippedSubviews

Snack, code example, screenshot, or link to a repository:

@react-native-bot react-native-bot added the Platform: Android Android applications. label Nov 4, 2019
@xutm
Copy link

xutm commented Jan 16, 2020

Any process?

@stale
Copy link

stale bot commented Apr 17, 2020

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Apr 17, 2020
@cristianoccazinsp
Copy link
Contributor Author

Still an issue

@stale stale bot removed the Stale There has been a lack of activity on this issue and it may be closed soon. label Apr 17, 2020
@stale
Copy link

stale bot commented Jul 18, 2020

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Jul 18, 2020
@cristianoccazinsp
Copy link
Contributor Author

cristianoccazinsp commented Jul 18, 2020 via email

@stale stale bot removed the Stale There has been a lack of activity on this issue and it may be closed soon. label Jul 18, 2020
@fabOnReact
Copy link
Contributor

Thanks for the issue report. I tested your used case by adding removeClippedSubviews={true} to the Animated.FlatList component in my branch #28952

This issue is fixed with #28952 Thanks a lot

CLICK TO OPEN TESTS RESULTS

the onPressHandler is triggered when we set onPressDisabled: false

AFTER
2021-02-25.13-06-45.mp4

the text is selected when we set onPressDisabled: false

AFTER
2021-02-25.13-08-24.mp4

@facebook facebook locked as resolved and limited conversation to collaborators Sep 1, 2022
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Sep 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Platform: Android Android applications. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants