mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-28 20:25:33 +08:00
Pass fabric flag from native to JS
Reviewed By: mdvacca Differential Revision: D7373722 fbshipit-source-id: 3cd051f38677900693f3da797effa11f9161df37
This commit is contained in:
committed by
Facebook Github Bot
parent
046d4cee8b
commit
cbb7c7c193
@@ -1,24 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) 2015-present, Facebook, Inc.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @providesModule TestFabricText
|
||||
* @flow
|
||||
* @format
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* This is a switch on the correct Text to use for Fabric testing purposes
|
||||
*/
|
||||
let TestFabricText;
|
||||
const FabricTestModule = require('NativeModules').FabricTestModule;
|
||||
if (FabricTestModule && FabricTestModule.IS_FABRIC_ENABLED) {
|
||||
TestFabricText = require('FabricText');
|
||||
} else {
|
||||
TestFabricText = require('Text');
|
||||
}
|
||||
|
||||
module.exports = TestFabricText;
|
||||
Reference in New Issue
Block a user