Skip to content

Commit 36a0405

Browse files
pietervfacebook-github-bot
authored andcommitted
Create TextOptimized component to performance test changes to Text (facebook#44962)
Summary: Pull Request resolved: facebook#44962 Add a short term fork of `Text` for the purpose of performance testing. Specific differences from `Text`: - Lazy init Pressability via a nested component. - Skip children context wrapper when safe. - Move props destructuring to function param. Changelog: [Internal] Reviewed By: sammy-SC Differential Revision: D58601810 fbshipit-source-id: 988bac6100287705fb1bf8dc48cb2cfae56343df
1 parent 8c7c6f3 commit 36a0405

File tree

3 files changed

+549
-2
lines changed

3 files changed

+549
-2
lines changed

packages/react-native/Libraries/Text/TextNativeComponent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {createViewConfig} from '../NativeComponent/ViewConfig';
1717
import UIManager from '../ReactNative/UIManager';
1818
import createReactNativeComponentClass from '../Renderer/shims/createReactNativeComponentClass';
1919

20-
type NativeTextProps = $ReadOnly<{
20+
export type NativeTextProps = $ReadOnly<{
2121
...TextProps,
2222
isHighlighted?: ?boolean,
2323
selectionColor?: ?ProcessedColorValue,

0 commit comments

Comments
 (0)