flowify a few more Libraries

This commit is contained in:
Basil Hosmer
2015-03-26 10:06:50 -07:00
parent 7e02a1e111
commit 030b264eb4
9 changed files with 57 additions and 23 deletions

View File

@@ -11,14 +11,18 @@
*/
'use strict';
var POPAnimation = require('POPAnimation');
var POPAnimationOrNull = require('POPAnimation');
if (!POPAnimation) {
if (!POPAnimationOrNull) {
// 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 : ?{});
} else {
// At this point, POPAnimationOrNull is guaranteed to be
// non-null. Bring it local to preserve type refinement.
var POPAnimation = POPAnimationOrNull;
var invariant = require('invariant');
var warning = require('warning');