14 lines
459 B
JavaScript
14 lines
459 B
JavaScript
|
export function isReactNative() {
|
||
|
return (typeof document === "undefined" &&
|
||
|
typeof navigator !== "undefined" &&
|
||
|
navigator.product === "ReactNative");
|
||
|
}
|
||
|
export function isNode() {
|
||
|
return (typeof process !== "undefined" &&
|
||
|
typeof process.versions !== "undefined" &&
|
||
|
typeof process.versions.node !== "undefined");
|
||
|
}
|
||
|
export function isBrowser() {
|
||
|
return !isReactNative() && !isNode();
|
||
|
}
|
||
|
//# sourceMappingURL=env.js.map
|