Open nabil-k opened 2 years ago
The bug is native-side between the implementations of LayoutAnimation and RCTNativeAnimatedShimmer; in short LayoutAnimation overwrites (and then clears) the animation set by RCTNativeAnimatedShimmer; it should probably be re-written to have LayoutAnimation only apply animations to elements w/o animations already applied and only clear animations that it set itself
Willing to submit a PR to fix?
Requested priority
Low
Products/applications affected
Shimmer Control (win32)
Package version(s)
@fluentui-react-native/experimental-shimmer (0.6.33)
OS version(s)
No response
Platform
Xcode version
No response
Please provide a reproduction of the bug
I was prototyping a Toggle control and was using LayoutAnimation to add animations to the prototype
I then added my prototyped control on the Shimmer test page on win32
Now whenever I trigger the toggle animation by applying a new layout change, the shimmer controls all have their animations stop.
Actual behavior
https://user-images.githubusercontent.com/20259210/177412821-a6e635c5-a00c-42a8-b6d4-bd36cb5a114b.mp4
Expected behavior
Shimmer control animations should not stop.