diff --git a/ReactNativeClient/lib/shim.js b/ReactNativeClient/lib/shim.js index f39bcb31e..44ae2c8d6 100644 --- a/ReactNativeClient/lib/shim.js +++ b/ReactNativeClient/lib/shim.js @@ -38,6 +38,7 @@ shim.platformName = function() { if (shim.isWindows()) return 'win32'; if (shim.isLinux()) return 'linux'; if (shim.isFreeBSD()) return 'freebsd'; + if (process && process.platform) return process.platform; throw new Error('Cannot determine platform'); };