/
githubmr
/
facebook-react
Обзор
Документация
Войти
/
githubmr
/
facebook-react
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
scripts/rollup/shims/react-native/ReactFabric.js
32 строки
772 B
Alex Hunt
Update React Native shims to use export syntax (#31426)
07 ноя 2024, 17:53
Не верифицирован
07 ноя 2024, 17:53
5c56b87
Код
Авторство
О чём код?
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @noformat * @nolint * @flow */ 'use strict'; import {BatchedBridge} from 'react-native/Libraries/ReactPrivate/ReactNativePrivateInterface'; import type {ReactFabricType} from './ReactNativeTypes'; let ReactFabric: ReactFabricType; if (__DEV__) { ReactFabric = require('../implementations/ReactFabric-dev'); } else { ReactFabric = require('../implementations/ReactFabric-prod'); } global.RN$stopSurface = ReactFabric.stopSurface; if (global.RN$Bridgeless !== true) { BatchedBridge.registerCallableModule('ReactFabric', ReactFabric); } export default ReactFabric;