-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
LayoutAnimation crashes on Android #25832
Comments
For hotfix just wrap your component inside parent view(If your are using conditional rendering make sure wrap that view outside that condition. This will fix that issue.. |
My project is suffering from this at the moment. The solution by @msinghus96 isn't working for me unfortunately.
Any other ideas? |
Can you share your code. |
@msinghus96 Here's the component using the experimental LayoutAnimation:
It can pretty much be summed up with this:
|
If anyone needs it I've found a viable alternative: I've successfully implemented |
Hey @gdoudeng why did you close the issue? |
If anyone is able to provide a simplified, standalone repro that would be super helpful to investigate this. Ideally the repro should use Expo's Snack. We know there are some crashes with Layout Animations on Android but have had trouble tracking them all down. If you could create a repro for this we'd greatly appreciate it. |
Unfortunately, @msinghus96, your solution did not resolve my similar issue. The called method
executed in component property @TheSavior I'll see if I can replicate this in minimal POC app. |
Yes, same issue here.
This code:
together with:
makes app crash. For first click when panel is expanded it is ok but for the second click when it should hide then app crash. |
@k3nada, can you put that into a complete example into an expo snack that crashes. See my comment above. |
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. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
React Native version:0.60.4
phone:OPPO PAAM00 android 9.0
System:
OS: Windows 10
CPU: (4) x64 Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz
Memory: 7.47 GB / 19.89 GB
Binaries:
Node: 10.14.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.13.0 - ~\AppData\Roaming\npm\yarn.CMD
npm: 6.9.0 - ~\AppData\Roaming\npm\npm.CMD
Watchman: 4.9.4 - G:\Users\ASUS\watchman\watchman.EXE
SDKs:
Android SDK:
Android NDK: 19.0.5232133
Steps To Reproduce
1.UIManager.setLayoutAnimationEnabledExperimental && UIManager.setLayoutAnimationEnabledExperimental(true);
2.LayoutAnimation.spring();
3.this.setState to Update view
Describe what you expected to happen:
Render layout animation
Not all layout animations are abnormal. Only some layout animations are abnormal. Sometimes some views disappear after executing the layout animation, and then the program crashes when executed again.But normal in version 0.59.10.
Snack, code example, screenshot, or link to a repository:
adb logcat show this
0.60.4 show this
The bottom cell disappeared.Then the program crashes
0.59.10 is normal
The text was updated successfully, but these errors were encountered: