Skip to content

Commit

Permalink
RN: Suppress RCTVirtualText Warning in Bridgeless
Browse files Browse the repository at this point in the history
Summary:
The `DummyUIManager` module warns whenever `RCTVirtualText` is initialized. This stops that.

Changelog:
[Internal]

Reviewed By: PeteTheHeat

Differential Revision: D25073194

fbshipit-source-id: 8b9052d1cbb9a4defa5efbd110e1a91cd8884c48
  • Loading branch information
yungsters authored and facebook-github-bot committed Nov 19, 2020
1 parent bea3495 commit 130618f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Libraries/Text/TextNativeComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export const NativeText: HostComponent<NativeTextProps> = (createReactNativeComp
): any);

export const NativeVirtualText: HostComponent<NativeTextProps> =
!global.RN$Bridgeless &&
UIManager.getViewManagerConfig('RCTVirtualText') == null
? NativeText
: (createReactNativeComponentClass('RCTVirtualText', () => ({
Expand Down

0 comments on commit 130618f

Please sign in to comment.