question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Warning: Overriding previous layout animation with new one before the first began

See original GitHub issue

One 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:open
  • Created 7 years ago
  • Reactions:11
  • Comments:14

github_iconTop GitHub Comments

15reactions
perrosnkcommented, Jan 30, 2017

I am getting the same error, after opening, then closing a selector/picker and then auto-focusing on textinput.

Warning: Overriding previous layout animation with new one before the first began:
{
    create =     {
        property = opacity;
        type = keyboard;
    };
    delete =     {
        property = opacity;
        type = keyboard;
    };
    duration = "349.9999940395355";
    update =     {
        type = keyboard;
    };
} -> {
    create =     {
        property = opacity;
        type = keyboard;
    };
    delete =     {
        property = opacity;
        type = keyboard;
    };
    duration = 250;
    update =     {
        type = keyboard;
    };
}.

could it be related to:https://github.com/facebook/react-native/issues/10606 ?

7reactions
joshuatcommented, Sep 8, 2018

This pull request seems to have fixed it for me:

Andr3wHur5t/react-native-keyboard-spacer#66

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found