Migrate unit tests from FBReactKitModules to FBReactKit

This commit is contained in:
Nick Lockwood
2015-07-07 16:19:40 -07:00
parent 5c01b1e1a0
commit 1b7699f671
24 changed files with 93 additions and 49 deletions

View File

@@ -7,11 +7,18 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule AnimationExperimental
* @flow
*/
'use strict';
var RCTAnimationManager = require('NativeModules').AnimationExperimentalManager;
if (!RCTAnimationManager) {
// AnimationExperimental isn't available internally - this is a temporary
// workaround to enable its availability to be determined at runtime.
// For Flow let's pretend like we always export AnimationExperimental
// so all our users don't need to do null checks
module.exports = null;
} else {
var React = require('React');
var AnimationUtils = require('AnimationUtils');
@@ -88,3 +95,5 @@ if (__DEV__) {
}
module.exports = AnimationExperimental;
}