From e4ac66b0ee03887c6717cd1ad8af9afdb4d58385 Mon Sep 17 00:00:00 2001 From: Pieter De Baets Date: Wed, 17 Aug 2016 10:22:51 -0700 Subject: [PATCH] Unbreak UIManager.takeSnapshot Reviewed By: majak Differential Revision: D3729478 fbshipit-source-id: 35869e4327debae78f36638694d09f30c6478661 --- Libraries/Utilities/UIManager.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Libraries/Utilities/UIManager.js b/Libraries/Utilities/UIManager.js index 95c290c25..11bb236ea 100644 --- a/Libraries/Utilities/UIManager.js +++ b/Libraries/Utilities/UIManager.js @@ -20,6 +20,8 @@ const invariant = require('fbjs/lib/invariant'); invariant(UIManager, 'UIManager is undefined. The native module config is probably incorrect.'); +const _takeSnapshot = UIManager.takeSnapshot; + /** * Capture an image of the screen, window or an individual view. The image * will be stored in a temporary file that will only exist for as long as the @@ -46,7 +48,6 @@ UIManager.takeSnapshot = async function( quality ?: number, }, ) { - const _takeSnapshot = UIManager.takeSnapshot; if (!_takeSnapshot) { console.warn('UIManager.takeSnapshot is not available on this platform'); return;