mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fabric: Fixed UI jankiness caused by changes in flattening
Summary: It's not clear why exactly but seems in some cases, for some views the hierarchical relationship between views is required (when it should not be conceptually). Turning this feature off for Android for now. Changelog: [Internal] Fabric-specific internal change. Reviewed By: JoshuaGross Differential Revision: D20292833 fbshipit-source-id: 1aab8468cedeb5c1440a95944be7eca3216e0db0
This commit is contained in:
committed by
Facebook Github Bot
parent
b85cb0cf7a
commit
22fdb8bb05
@@ -53,6 +53,13 @@ void ViewShadowNode::updateTraits() {
|
||||
|
||||
formsView = formsView || formsStackingContext;
|
||||
|
||||
#ifdef ANDROID
|
||||
// Force `formsStackingContext` trait for nodes which have .
|
||||
// TODO: T63560216 Investigate why/how `formsView` entangled with
|
||||
// `formsStackingContext`.
|
||||
formsStackingContext = formsStackingContext || formsView;
|
||||
#endif
|
||||
|
||||
if (formsView) {
|
||||
traits_.set(ShadowNodeTraits::Trait::FormsView);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user