Warning: Overriding previous layout animation with new one before the first began
See original GitHub issueOne of my components changes state in order to render an InputText, the state change handler has set LayoutAnimation.configureNext
to animate this state transition. It seems like this is being fired at the same time KeyboardSpacer
animates itself, throwing the next warning:
Warning: Overriding previous layout animation with new one before the first began
Both animations (spacer and my component’s state change) render without issues.
Is there a way to avoid this?
Issue Analytics
- State:
- Created 7 years ago
- Reactions:11
- Comments:14
Top Results From Across the Web
React Native default LayoutAnimations on iOS - Stack Overflow
Then I got the following warning: Warning: Overriding previous layout animation with new one before the first began: <RCTLayoutAnimationGroup: ...
Read more >Overriding previous layout animation with new one before the ...
component has an animation that override another animation. So app show warning. Warning: Overriding previous layout animation with new one ...
Read more >Overriding previous layout animation with new one before the ...
One of my components changes state in order to render an InputText, the state change handler has set LayoutAnimation.
Read more >LayoutAnimation | FlashList - Shopify
// This must be called before `LayoutAnimation.configureNext` in order for the animation to run properly. listRef.current?.
Read more >React Native LayoutAnimation - Level Up Coding
In other words, animating one component will not affect others, as the frame of the component being animated is not actually changing. LayoutAnimation...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I am getting the same error, after opening, then closing a selector/picker and then auto-focusing on textinput.
could it be related to:https://github.com/facebook/react-native/issues/10606 ?
This pull request seems to have fixed it for me:
Andr3wHur5t/react-native-keyboard-spacer#66