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
Screen transition animation flickers when calling .focus()
on a TextInput
while the transition is in progress
#1061
Comments
You may use the autofocus prop in TextInput or wait until the transition is over and the page is in focus
|
@Razorholt hi! I think I mentioned in the issue that everything is fine when using |
Sorry, my bad. |
@WoLewicki Thank you for taking a look at it! |
I guess that focusing during the transition is something that should not be done anyways. I will close this issue then. Feel free to comment if I am wrong at something and we can reopen it. |
Description
Demo:
Simulator.Screen.Recording.-.iPhone.11.Pro.-.2021-08-19.at.01.15.09.mp4
Steps To Reproduce
TextInput
inside a screen.TextInput
some time after the screen mount, but before the screen transition animation ends. In the example I usesetTimeout
to call the.focus()
method with a 10ms delay.I think I should note that there's no flickering when using
autoFocus
prop or when focusing theTextInput
on mount without a delay. The reason I usesetTimeout
to begin with is because otherwise I have layout issues due to a workaround I implemented for #649.Expected behavior
The transition animation is smooth.
Actual behavior
There is flickering during the transition animation.
Snack or minimal code example
Package versions
The text was updated successfully, but these errors were encountered: