From c95a9910614cbf67dd66e3966fcc59502d19e9d5 Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Mon, 10 Apr 2017 10:22:55 -0700 Subject: [PATCH] Removed takeSnapshot util function from ReactNative renderer Summary: It was added to react-native-implementation in c7387fe Relates to [this comment](https://github.com/facebook/react-native/commit/848593c0f0b75da9ff342596908c5091a2cd1430#commitcomment-21585552) and issue #13343 cc janicduplessis Closes https://github.com/facebook/react-native/pull/13347 Reviewed By: bvaughn Differential Revision: D4843898 Pulled By: ericvicenti fbshipit-source-id: 2b83d7bd71b7a7e6961e4da551ddd4090af03824 --- Libraries/Renderer/src/renderers/native/ReactNativeFiber.js | 3 --- Libraries/Renderer/src/renderers/native/ReactNativeStack.js | 3 --- 2 files changed, 6 deletions(-) diff --git a/Libraries/Renderer/src/renderers/native/ReactNativeFiber.js b/Libraries/Renderer/src/renderers/native/ReactNativeFiber.js index b770c7ae5..97a0d22e7 100644 --- a/Libraries/Renderer/src/renderers/native/ReactNativeFiber.js +++ b/Libraries/Renderer/src/renderers/native/ReactNativeFiber.js @@ -29,7 +29,6 @@ const deepFreezeAndThrowOnMutationInDev = require('deepFreezeAndThrowOnMutationI const emptyObject = require('fbjs/lib/emptyObject'); const findNodeHandle = require('findNodeHandle'); const invariant = require('fbjs/lib/invariant'); -const takeSnapshot = require('takeSnapshot'); const {injectInternals} = require('ReactFiberDevToolsHook'); @@ -421,8 +420,6 @@ const ReactNative = { return NativeRenderer.getPublicRootInstance(root); }, - takeSnapshot, - unmountComponentAtNode(containerTag: number) { const root = roots.get(containerTag); if (root) { diff --git a/Libraries/Renderer/src/renderers/native/ReactNativeStack.js b/Libraries/Renderer/src/renderers/native/ReactNativeStack.js index 0d1f323f0..a9fa118cf 100644 --- a/Libraries/Renderer/src/renderers/native/ReactNativeStack.js +++ b/Libraries/Renderer/src/renderers/native/ReactNativeStack.js @@ -18,7 +18,6 @@ var ReactNativeStackInjection = require('ReactNativeStackInjection'); var ReactUpdates = require('ReactUpdates'); var findNodeHandle = require('findNodeHandle'); -var takeSnapshot = require('takeSnapshot'); ReactNativeInjection.inject(); ReactNativeStackInjection.inject(); @@ -47,8 +46,6 @@ var ReactNative = { render: render, - takeSnapshot, - unmountComponentAtNode: ReactNativeMount.unmountComponentAtNode, /* eslint-disable camelcase */