BOOM Initial React Native import and setup

This commit is contained in:
Peter Cottle 2015-04-12 18:48:35 -07:00
parent ad5ef4f804
commit 88614aac06
19 changed files with 1099 additions and 4 deletions

18
src/js/util/keyMirror.js Normal file
View file

@ -0,0 +1,18 @@
"use strict";
/**
* Our own flavor of keyMirror since I get some weird
* obscure error when trying to import the react lib one.
*/
var keyMirror = function(obj) {
var result = {};
for (var key in obj) {
if (!obj.hasOwnProperty(key)) {
continue;
}
result[key] = key;
}
return result;
};
module.exports = keyMirror;