mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
Now that RN is only on the New Architecture, we can stop stop syncing the legacy React Native renderers. In this diff, I just stop syncing them. In a follow up I'll delete the code for them so only Fabric is left. This will also allow us to remove the `enableLegacyMode` feature flag.
25 lines
600 B
JavaScript
25 lines
600 B
JavaScript
/**
|
|
* 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 type {ReactNativeType} from './ReactNativeTypes';
|
|
|
|
let ReactNative: ReactNativeType;
|
|
|
|
// TODO: Delete the legacy renderer. Only ReactFabric is used now.
|
|
if (__DEV__) {
|
|
ReactNative = require('../implementations/ReactNativeRenderer-dev');
|
|
} else {
|
|
ReactNative = require('../implementations/ReactNativeRenderer-prod');
|
|
}
|
|
|
|
export default ReactNative;
|