FormidableLabs / react-game-kit

Component library for making games with React & React Native
http://reactnext.surge.sh
MIT License
4.62k stars 309 forks source link

Fix: removed last performance.now() from the codebase #42

Closed almostintuitive closed 7 years ago

almostintuitive commented 7 years ago

performance is undefined on Android, when running react-game-kit's with react-native bindings, it simply throws & fails.

It has been removed from the rest of the codebase a few days ago, but one instance remained. This fixes that.

Closes https://github.com/FormidableLabs/react-game-kit/issues/41

stefvhuynh commented 7 years ago

@ryan-roemer, this looks good to me. It addresses https://github.com/FormidableLabs/react-game-kit/issues/41. It looks like @kenwheeler replaced performance with Date in an equivalent file here: https://github.com/FormidableLabs/react-game-kit/commit/1b22f00be0ea4d035123c1366dcbc0610eeb3d71#diff-fbaefed63bd33a76a2154094be563442L49.