diff --git a/ReactNativeClient/lib/shim.js b/ReactNativeClient/lib/shim.js
index <HASH>..<HASH> 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');
 };
Cli: Resolves #<I>: Add support to Termux by returning a default when platform name cannot be determined