From aceaaa69eb3bf08d35650f846d079f0b8064cf18 Mon Sep 17 00:00:00 2001 From: Gabe Levi Date: Tue, 12 May 2015 19:50:40 -0700 Subject: [PATCH] [Flow] v0.11.0 cleaning - Part 15 (Libraries/FBReactKit/js) --- Libraries/BatchedBridge/BatchedBridgedModules/POPAnimation.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Libraries/BatchedBridge/BatchedBridgedModules/POPAnimation.js b/Libraries/BatchedBridge/BatchedBridgedModules/POPAnimation.js index 959bf2383..0245cc144 100644 --- a/Libraries/BatchedBridge/BatchedBridgedModules/POPAnimation.js +++ b/Libraries/BatchedBridge/BatchedBridgedModules/POPAnimation.js @@ -15,7 +15,9 @@ var RCTPOPAnimationManager = require('NativeModules').POPAnimationManager; if (!RCTPOPAnimationManager) { // POP animation isn't available in the OSS fork - this is a temporary // workaround to enable its availability to be determined at runtime. - module.exports = (null: ?Object); + // For Flow let's pretend like we always export POPAnimation + // so all our users don't need to do null checks + module.exports = ((null: any): typeof POPAnimation); } else { var ReactPropTypes = require('ReactPropTypes');