diff --git a/lib/utils.js b/lib/utils.js index aca5f4e..27e7934 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -177,9 +177,13 @@ function trim(str) { * * react-native: * navigator.product -> 'ReactNative' + * nativescript + * navigator.product -> 'NativeScript' or 'NS' */ function isStandardBrowserEnv() { - if (typeof navigator !== 'undefined' && navigator.product === 'ReactNative') { + if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' || + navigator.product === 'NativeScript' || + navigator.product === 'NS') { return false; } return (