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

ScrollView with a TextInput Transform On Android #22976

Closed
3 tasks done
dested opened this issue Jan 13, 2019 · 1 comment
Closed
3 tasks done

ScrollView with a TextInput Transform On Android #22976

dested opened this issue Jan 13, 2019 · 1 comment
Labels
Bug Component: ScrollView Component: TextInput Related to the TextInput component. Platform: Android Android applications. Resolution: Locked This issue was locked by the bot.

Comments

@dested
Copy link

dested commented Jan 13, 2019

Environment

React Native Environment Info:
System:
OS: Windows 10
CPU: (16) x64 Intel(R) Core(TM) i7-5960X CPU @ 3.00GHz
Memory: 31.87 GB / 63.90 GB
Binaries:
Yarn: 1.3.2 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 5.3.0 - ~\AppData\Roaming\npm\npm.CMD
IDEs:
Android Studio: Version 3.1.0.0 AI-173.4907809

Description

A ScrollView with a TextInput that uses transform:[{translateY:value}] causes the ScrollView to not be able to faithfully position the TextInput in the view. This would not really be a huge issue if instead of forcing the scroll back to the top, it did nothing. I have only been able to reproduce this on Android, both real device and simulator.

Reproducible Demo

https://snack.expo.io/By9F5Ztf4

  1. Open the app
  2. Tap the red input box
  3. Scroll to it so it is in view
  4. Type
  5. On keystroke it scrolls it back to the top (presumably trying to scroll it into view.)
@cpojer
Copy link
Contributor

cpojer commented Apr 2, 2019

You are right, this seems like this is a real issue but unfortunately it's unlikely anyone will be able to spend time on this anytime soon. I'm going to close this issue but we are more than happy to receive a pull request with a fix for this!

@cpojer cpojer closed this as completed Apr 2, 2019
@facebook facebook locked as resolved and limited conversation to collaborators Apr 2, 2020
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Apr 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Component: ScrollView Component: TextInput Related to the TextInput component. Platform: Android Android applications. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants