Skip to content

Commit 181747a

Browse files
authored
[RN] Move takeSnapshot to RN (#12574)
It only uses public APIs. I have a diff on the other side.
1 parent bc753a7 commit 181747a

File tree

4 files changed

+0
-69
lines changed

4 files changed

+0
-69
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import {getInspectorDataForViewTag} from './ReactNativeFiberInspector';
2626
import createReactNativeComponentClass from './createReactNativeComponentClass';
2727
import {injectFindHostInstance} from './findNodeHandle';
2828
import findNumericNodeHandle from './findNumericNodeHandle';
29-
import takeSnapshot from './takeSnapshot';
3029

3130
injectFindHostInstance(ReactFabricRenderer.findHostInstance);
3231

@@ -85,7 +84,6 @@ const ReactFabric: ReactNativeType = {
8584
ReactNativeComponentTree, // ScrollResponder
8685
ReactNativePropRegistry, // flattenStyle, Stylesheet
8786
createReactNativeComponentClass, // RCTText, RCTView, ReactNativeART
88-
takeSnapshot, // react-native-implementation
8987
},
9088
};
9189

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import {getInspectorDataForViewTag} from './ReactNativeFiberInspector';
3030
import createReactNativeComponentClass from './createReactNativeComponentClass';
3131
import {injectFindHostInstance} from './findNodeHandle';
3232
import findNumericNodeHandle from './findNumericNodeHandle';
33-
import takeSnapshot from './takeSnapshot';
3433

3534
injectFindHostInstance(ReactNativeFiberRenderer.findHostInstance);
3635

@@ -104,7 +103,6 @@ const ReactNativeRenderer: ReactNativeType = {
104103
ReactNativeComponentTree, // ScrollResponder
105104
ReactNativePropRegistry, // flattenStyle, Stylesheet
106105
createReactNativeComponentClass, // RCTText, RCTView, ReactNativeART
107-
takeSnapshot, // react-native-implementation
108106
computeComponentStackForErrorReporting,
109107
},
110108
};

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

Lines changed: 0 additions & 48 deletions
This file was deleted.

scripts/rollup/shims/react-native/takeSnapshot.js

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)