Initial transform re-applied when View is moved #12819
Labels
Area: View
bug
Old Architecture
Broad category for issues that apply to the RN "old" architecture of Cxx Modules + Paper
Partner: Facebook
Milestone
Problem Description
XAML fires the Loaded event every time you "move" a keyed component in react-native. The reason is that you remove the XAML view from the parent's collection of children then re-add it at the new index.
Steps To Reproduce
https://snack.expo.dev/yItxPvjSwp7gqhNTAjk0s
Expected Results
Windows behavior should match the Web behavior in the Expo Snack (where after unsetting the scale transform, the unset transform behavior persists).
However, because the Loaded callback in FrameworkElementViewManager is never cleared, the transform gets re-applied :(
CLI version
npx react-native -v
Environment
Target Platform Version
None
Target Device(s)
No response
Visual Studio Version
None
Build Configuration
None
Snack, code example, screenshot, or link to a repository
No response
The text was updated successfully, but these errors were encountered: