Skip to content

Commit

Permalink
[RN] Move takeSnapshot to RN (facebook#12574)
Browse files Browse the repository at this point in the history
It only uses public APIs. I have a diff on the other side.
  • Loading branch information
sebmarkbage authored and rhagigi committed Apr 19, 2018
1 parent 419c981 commit 9961f1f
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 69 deletions.
2 changes: 0 additions & 2 deletions packages/react-native-renderer/src/ReactFabric.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import {getInspectorDataForViewTag} from './ReactNativeFiberInspector';
import createReactNativeComponentClass from './createReactNativeComponentClass';
import {injectFindHostInstance} from './findNodeHandle';
import findNumericNodeHandle from './findNumericNodeHandle';
import takeSnapshot from './takeSnapshot';

injectFindHostInstance(ReactFabricRenderer.findHostInstance);

Expand Down Expand Up @@ -85,7 +84,6 @@ const ReactFabric: ReactNativeType = {
ReactNativeComponentTree, // ScrollResponder
ReactNativePropRegistry, // flattenStyle, Stylesheet
createReactNativeComponentClass, // RCTText, RCTView, ReactNativeART
takeSnapshot, // react-native-implementation
},
};

Expand Down
2 changes: 0 additions & 2 deletions packages/react-native-renderer/src/ReactNativeRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import {getInspectorDataForViewTag} from './ReactNativeFiberInspector';
import createReactNativeComponentClass from './createReactNativeComponentClass';
import {injectFindHostInstance} from './findNodeHandle';
import findNumericNodeHandle from './findNumericNodeHandle';
import takeSnapshot from './takeSnapshot';

injectFindHostInstance(ReactNativeFiberRenderer.findHostInstance);

Expand Down Expand Up @@ -104,7 +103,6 @@ const ReactNativeRenderer: ReactNativeType = {
ReactNativeComponentTree, // ScrollResponder
ReactNativePropRegistry, // flattenStyle, Stylesheet
createReactNativeComponentClass, // RCTText, RCTView, ReactNativeART
takeSnapshot, // react-native-implementation
computeComponentStackForErrorReporting,
},
};
Expand Down
48 changes: 0 additions & 48 deletions packages/react-native-renderer/src/takeSnapshot.js

This file was deleted.

17 changes: 0 additions & 17 deletions scripts/rollup/shims/react-native/takeSnapshot.js

This file was deleted.

0 comments on commit 9961f1f

Please sign in to comment.