[Flow] v0.11.0 cleaning - Part 15 (Libraries/FBReactKit/js)

This commit is contained in:
Gabe Levi 2015-05-12 19:50:40 -07:00 committed by Christopher Chedeau
parent 81ad810186
commit aceaaa69eb
1 changed files with 3 additions and 1 deletions

View File

@ -15,7 +15,9 @@ var RCTPOPAnimationManager = require('NativeModules').POPAnimationManager;
if (!RCTPOPAnimationManager) { if (!RCTPOPAnimationManager) {
// POP animation isn't available in the OSS fork - this is a temporary // POP animation isn't available in the OSS fork - this is a temporary
// workaround to enable its availability to be determined at runtime. // 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 { } else {
var ReactPropTypes = require('ReactPropTypes'); var ReactPropTypes = require('ReactPropTypes');