mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Remove Paper (ReactNativeRenderer) files (#56557)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/56557 All Meta apps have migrated to Fabric, so the Paper renderer files are no longer needed. This commit removes: - ReactNativeRenderer-dev.js, ReactNativeRenderer-dev.fb.js - ReactNativeRenderer-prod.js, ReactNativeRenderer-prod.fb.js - ReactNativeRenderer-profiling.js, ReactNativeRenderer-profiling.fb.js - ReactNative.js shim Also updates: - AppRegistryImpl.js: unmountApplicationComponentAtRootTag is now a no-op with error log Changelog: [internal] Reviewed By: javache Differential Revision: D101353118 fbshipit-source-id: 57548fad3fa7e27d1e269bc84d5a68fa0ccafa6f
This commit is contained in:
1 parent
1a623a8266
commit
2cb5a9de1b
5 files changed
+4
-43757
No files matched your search
-19668
File diff suppressed because it is too large.
Load diff
-11129
File diff suppressed because it is too large.
Load diff
-12930
File diff suppressed because it is too large.
Load diff
@@ -1,26 +0,0 @@
|
||||
/**
|
||||
* 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
|
||||
* @generated SignedSource<<5908e4e900f26a939c59a16d2c252af3>>
|
||||
*
|
||||
* This file is no longer sync'd from the facebook/react repository.
|
||||
* The version compatibility check is removed. Use at your own risk.
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
// The underlying type no longer exists
|
||||
let ReactNative: $FlowFixMe;
|
||||
|
||||
if (__DEV__) {
|
||||
ReactNative = require('../implementations/ReactNativeRenderer-dev');
|
||||
} else {
|
||||
ReactNative = require('../implementations/ReactNativeRenderer-prod');
|
||||
}
|
||||
|
||||
export default ReactNative;
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
import type {HostComponent, ViewProps} from 'react-native';
|
||||
|
||||
import ReactNative from '../../../react-native/Libraries/Renderer/shims/ReactNative';
|
||||
import ReactFabric from '../../../react-native/Libraries/Renderer/shims/ReactFabric';
|
||||
import * as React from 'react';
|
||||
import {UIManager, requireNativeComponent} from 'react-native';
|
||||
|
||||
@@ -42,7 +42,7 @@ export function callNativeMethodToChangeBackgroundColor(
|
||||
console.log('viewRef is null');
|
||||
return;
|
||||
}
|
||||
const reactTag = ReactNative.findNodeHandle<$FlowFixMe>(viewRef);
|
||||
const reactTag = ReactFabric.findNodeHandle<$FlowFixMe>(viewRef);
|
||||
if (reactTag == null) {
|
||||
console.log('reactTag is null');
|
||||
return;
|
||||
@@ -63,7 +63,7 @@ export function callNativeMethodToAddOverlays(
|
||||
console.log('viewRef is null');
|
||||
return;
|
||||
}
|
||||
const reactTag = ReactNative.findNodeHandle<$FlowFixMe>(viewRef);
|
||||
const reactTag = ReactFabric.findNodeHandle<$FlowFixMe>(viewRef);
|
||||
if (reactTag == null) {
|
||||
console.log('reactTag is null');
|
||||
return;
|
||||
@@ -84,7 +84,7 @@ export function callNativeMethodToRemoveOverlays(
|
||||
console.log('viewRef is null');
|
||||
return;
|
||||
}
|
||||
const reactTag = ReactNative.findNodeHandle<$FlowFixMe>(viewRef);
|
||||
const reactTag = ReactFabric.findNodeHandle<$FlowFixMe>(viewRef);
|
||||
if (reactTag == null) {
|
||||
console.log('reactTag is null');
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user