Skip to content

Commit 2d6be75

Browse files
authored
[Native] Delete NativeComponent and NativeMethodsMixin (#18036)
* [Native] Delete NativeComponent and NativeMethodsMixin * Remove more files
1 parent d4f2b03 commit 2d6be75

10 files changed

+260
-1257
lines changed

packages/react-native-renderer/src/NativeMethodsMixin.js

-330
This file was deleted.

packages/react-native-renderer/src/ReactFabric.js

+1-8
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ import ReactVersion from 'shared/ReactVersion';
3232
// Module provided by RN:
3333
import {UIManager} from 'react-native/Libraries/ReactPrivate/ReactNativePrivateInterface';
3434

35-
import NativeMethodsMixin from './NativeMethodsMixin';
36-
import ReactNativeComponent from './ReactNativeComponent';
3735
import {getClosestInstanceFromNode} from './ReactFabricComponentTree';
3836
import {getInspectorDataForViewTag} from './ReactNativeFiberInspector';
3937

@@ -155,8 +153,6 @@ setBatchingImplementation(
155153
const roots = new Map();
156154

157155
const ReactFabric: ReactFabricType = {
158-
NativeComponent: ReactNativeComponent(findNodeHandle, findHostInstance),
159-
160156
// This is needed for implementation details of TouchableNativeFeedback
161157
// Remove this once TouchableNativeFeedback doesn't use cloneElement
162158
findHostInstance_DEPRECATED,
@@ -223,10 +219,7 @@ const ReactFabric: ReactFabricType = {
223219
return createPortal(children, containerTag, null, key);
224220
},
225221

226-
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
227-
// Used as a mixin in many createClass-based components
228-
NativeMethodsMixin: NativeMethodsMixin(findNodeHandle, findHostInstance),
229-
},
222+
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {},
230223
};
231224

232225
injectIntoDevTools({

0 commit comments

Comments
 (0)