mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
enable preventDoubleTextMeasure optimisation by default (#44659)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/44659 changelog: [internal] Reviewed By: javache Differential Revision: D57678341 fbshipit-source-id: cc6fbcfedccc0fd4610d52feee60b0fc35cc83b9
This commit is contained in:
committed by
Facebook GitHub Bot
parent
b7fc5867f2
commit
33b064bb9c
+2
-2
@@ -4,7 +4,7 @@
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @generated SignedSource<<4f50dab251c41380a14506975355e49d>>
|
||||
* @generated SignedSource<<64ab913d2c940a7abfcd2aac32be1b72>>
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -55,7 +55,7 @@ public open class ReactNativeFeatureFlagsDefaults : ReactNativeFeatureFlagsProvi
|
||||
|
||||
override fun lazyAnimationCallbacks(): Boolean = false
|
||||
|
||||
override fun preventDoubleTextMeasure(): Boolean = false
|
||||
override fun preventDoubleTextMeasure(): Boolean = true
|
||||
|
||||
override fun setAndroidLayoutDirection(): Boolean = false
|
||||
|
||||
|
||||
+2
-2
@@ -4,7 +4,7 @@
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @generated SignedSource<<2bfa4670757aa340c88ae8ff57270308>>
|
||||
* @generated SignedSource<<54a1827a45d7dd15b5e8a26d49ad6d30>>
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -92,7 +92,7 @@ class ReactNativeFeatureFlagsDefaults : public ReactNativeFeatureFlagsProvider {
|
||||
}
|
||||
|
||||
bool preventDoubleTextMeasure() override {
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool setAndroidLayoutDirection() override {
|
||||
|
||||
@@ -114,7 +114,7 @@ const definitions: FeatureFlagDefinitions = {
|
||||
'Only enqueue Choreographer calls if there is an ongoing animation, instead of enqueueing every frame.',
|
||||
},
|
||||
preventDoubleTextMeasure: {
|
||||
defaultValue: false,
|
||||
defaultValue: true,
|
||||
description:
|
||||
'When enabled, ParagraphShadowNode will no longer call measure twice.',
|
||||
},
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @generated SignedSource<<20c3c50d2124fbfc7bbe434c940ce3bf>>
|
||||
* @generated SignedSource<<63e7a8952026600cb58367e9c70fb68d>>
|
||||
* @flow strict-local
|
||||
*/
|
||||
|
||||
@@ -170,7 +170,7 @@ export const lazyAnimationCallbacks: Getter<boolean> = createNativeFlagGetter('l
|
||||
/**
|
||||
* When enabled, ParagraphShadowNode will no longer call measure twice.
|
||||
*/
|
||||
export const preventDoubleTextMeasure: Getter<boolean> = createNativeFlagGetter('preventDoubleTextMeasure', false);
|
||||
export const preventDoubleTextMeasure: Getter<boolean> = createNativeFlagGetter('preventDoubleTextMeasure', true);
|
||||
/**
|
||||
* Propagate layout direction to Android views.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user