mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/49851 Android doesn't allow to mount a view that already has a parent. View recycling removes all children from a view. But if some views don't support recycling, they'll keep a reference to their children. Children being recycled will cause an exception when being mounted. This diff removes the view from its parent when it is being recycled. This guarantees that whatever the parent, the view can be mounted after being recycled. bypass-github-export-checks Changelog: [Internal] Reviewed By: sammy-SC Differential Revision: D70672120 fbshipit-source-id: 023d8fb48982d6d9ae7f9c537f7f2bb21cf15066