@hanzogui/constants 2.0.0-rc.41-hanzoai.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/cjs/constants.cjs +53 -0
- package/dist/cjs/constants.native.js +60 -0
- package/dist/cjs/constants.native.js.map +1 -0
- package/dist/cjs/index.cjs +20 -0
- package/dist/cjs/index.native.js +23 -0
- package/dist/cjs/index.native.js.map +1 -0
- package/dist/esm/constants.mjs +16 -0
- package/dist/esm/constants.mjs.map +1 -0
- package/dist/esm/constants.native.js +20 -0
- package/dist/esm/constants.native.js.map +1 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/index.mjs +2 -0
- package/dist/esm/index.mjs.map +1 -0
- package/dist/esm/index.native.js +2 -0
- package/dist/esm/index.native.js.map +1 -0
- package/package.json +45 -0
- package/src/constants.native.ts +46 -0
- package/src/constants.ts +52 -0
- package/src/index.ts +1 -0
- package/types/constants.d.ts +23 -0
- package/types/constants.d.ts.map +11 -0
- package/types/constants.native.d.ts +23 -0
- package/types/constants.native.d.ts.map +11 -0
- package/types/index.d.ts +3 -0
- package/types/index.d.ts.map +11 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020 Nate Wienert
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
+
value: true
|
|
22
|
+
}), mod);
|
|
23
|
+
var constants_exports = {};
|
|
24
|
+
__export(constants_exports, {
|
|
25
|
+
currentPlatform: () => currentPlatform,
|
|
26
|
+
isAndroid: () => isAndroid,
|
|
27
|
+
isBrowser: () => isBrowser,
|
|
28
|
+
isChrome: () => isChrome,
|
|
29
|
+
isClient: () => isClient,
|
|
30
|
+
isIos: () => isIos,
|
|
31
|
+
isServer: () => isServer,
|
|
32
|
+
isTV: () => isTV,
|
|
33
|
+
isTouchable: () => isTouchable,
|
|
34
|
+
isWeb: () => isWeb,
|
|
35
|
+
isWebTouchable: () => isWebTouchable,
|
|
36
|
+
isWindowDefined: () => isWindowDefined,
|
|
37
|
+
useIsomorphicLayoutEffect: () => useIsomorphicLayoutEffect
|
|
38
|
+
});
|
|
39
|
+
module.exports = __toCommonJS(constants_exports);
|
|
40
|
+
var import_react = require("react");
|
|
41
|
+
const isWeb = true;
|
|
42
|
+
const isBrowser = typeof document !== "undefined";
|
|
43
|
+
const isServer = !isBrowser;
|
|
44
|
+
const isClient = isBrowser;
|
|
45
|
+
const isWindowDefined = isBrowser;
|
|
46
|
+
const useIsomorphicLayoutEffect = isServer ? import_react.useEffect : import_react.useLayoutEffect;
|
|
47
|
+
const isChrome = typeof navigator !== "undefined" && /Chrome/.test(navigator.userAgent || "");
|
|
48
|
+
const isWebTouchable = isClient && ("ontouchstart" in window || navigator.maxTouchPoints > 0);
|
|
49
|
+
const isTouchable = isWebTouchable;
|
|
50
|
+
const isAndroid = process.env.TEST_NATIVE_PLATFORM === "android" || process.env.TEST_NATIVE_PLATFORM === "androidtv";
|
|
51
|
+
const isIos = process.env.TEST_NATIVE_PLATFORM === "ios" || process.env.TEST_NATIVE_PLATFORM === "tvos";
|
|
52
|
+
const isTV = process.env.TEST_NATIVE_PLATFORM === "androidtv" || process.env.TEST_NATIVE_PLATFORM === "tvos";
|
|
53
|
+
const currentPlatform = "web";
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
+
value: true
|
|
24
|
+
}), mod);
|
|
25
|
+
var constants_native_exports = {};
|
|
26
|
+
__export(constants_native_exports, {
|
|
27
|
+
currentPlatform: () => currentPlatform,
|
|
28
|
+
isAndroid: () => isAndroid,
|
|
29
|
+
isBrowser: () => isBrowser,
|
|
30
|
+
isChrome: () => isChrome,
|
|
31
|
+
isClient: () => isClient,
|
|
32
|
+
isIos: () => isIos,
|
|
33
|
+
isServer: () => isServer,
|
|
34
|
+
isTV: () => isTV,
|
|
35
|
+
isTouchable: () => isTouchable,
|
|
36
|
+
isWeb: () => isWeb,
|
|
37
|
+
isWebTouchable: () => isWebTouchable,
|
|
38
|
+
isWindowDefined: () => isWindowDefined,
|
|
39
|
+
useIsomorphicLayoutEffect: () => useIsomorphicLayoutEffect
|
|
40
|
+
});
|
|
41
|
+
module.exports = __toCommonJS(constants_native_exports);
|
|
42
|
+
var import_react = require("react");
|
|
43
|
+
var import_react_native = require("react-native");
|
|
44
|
+
var isWeb = false;
|
|
45
|
+
var isBrowser = false;
|
|
46
|
+
var isServer = false;
|
|
47
|
+
var isClient = true;
|
|
48
|
+
var isWindowDefined = false;
|
|
49
|
+
var useIsomorphicLayoutEffect = import_react.useLayoutEffect;
|
|
50
|
+
var isChrome = false;
|
|
51
|
+
var isWebTouchable = false;
|
|
52
|
+
var isTouchable = true;
|
|
53
|
+
var isAndroid = (import_react_native.Platform === null || import_react_native.Platform === void 0 ? void 0 : import_react_native.Platform.OS) === "android" || process.env.TEST_NATIVE_PLATFORM === "android" || process.env.TEST_NATIVE_PLATFORM === "androidtv";
|
|
54
|
+
var isIos = (import_react_native.Platform === null || import_react_native.Platform === void 0 ? void 0 : import_react_native.Platform.OS) === "ios" || process.env.TEST_NATIVE_PLATFORM === "ios" || process.env.TEST_NATIVE_PLATFORM === "tvos";
|
|
55
|
+
var isTV = (import_react_native.Platform === null || import_react_native.Platform === void 0 ? void 0 : import_react_native.Platform.isTV) || process.env.TEST_NATIVE_PLATFORM === "androidtv" || process.env.TEST_NATIVE_PLATFORM === "tvos";
|
|
56
|
+
var currentPlatform = ((import_react_native.Platform === null || import_react_native.Platform === void 0 ? void 0 : import_react_native.Platform.OS) ? {
|
|
57
|
+
ios: "ios",
|
|
58
|
+
android: "android"
|
|
59
|
+
}[import_react_native.Platform.OS] : void 0) || "native";
|
|
60
|
+
//# sourceMappingURL=constants.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["to","__toCommonJS","mod","__copyProps","__defProp","value","constants_native_exports","__export","currentPlatform","isAndroid","isBrowser","isChrome","isClient","isIos","isServer","isTV","isTouchable","isWeb","isWebTouchable","isWindowDefined","useIsomorphicLayoutEffect","module","exports","import_react","require","import_react_native","useLayoutEffect","Platform","OS","process","env","TEST_NATIVE_PLATFORM","ios","android"],"sources":["../../src/constants.native.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;EAAA,OAAAA,EAAA;AAAA;AAAA,IAAAC,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,wBAAA;AAAAC,QAAA,CAAAD,wBAAA;EAAAE,eAAA,EAAAA,CAAA,KAAAA,eAAA;EAAAC,SAAA,EAAAA,CAAA,KAAAA,SAAA;EAAAC,SAAA,EAAAA,CAAA,KAAAA,SAAA;EAAAC,QAAA,EAAAA,CAAA,KAAAA,QAAA;EAAAC,QAAA,EAAAA,CAAA,KAAAA,QAAA;EAAAC,KAAA,EAAAA,CAAA,KAAAA,KAAA;EAAAC,QAAA,EAAAA,CAAA,KAAAA,QAAA;EAAAC,IAAA,EAAAA,CAAA,KAAAA,IAAA;EAAAC,WAAA,EAAAA,CAAA,KAAAA,WAAA;EAAAC,KAAA,EAAAA,CAAA,KAAAA,KAAA;EAAAC,cAAA,EAAAA,CAAA,KAAAA,cAAA;EAAAC,eAAA,EAAAA,CAAA,KAAAA,eAAA;EAAAC,yBAAgC,EAAAA,CAAA,KAAAA;AAChC;AACOC,MAAI,CAAAC,OAAQ,GAAArB,YAAA,CAAAK,wBAAA;AACZ,IAAIiB,YAAY,GAAAC,OAAA;AAChB,IAAIC,mBAAW,GAAAD,OAAA;AACf,IAAIP,KAAA,QAAW;AAC0B,IAAIP,SAAA;AAC7C,IAAII,QAAA;AACJ,IAAIF,QAAA,GAAW;AACf,IAAIO,eAAA,GAAiB;AACrB,IAAIC,yBAAc,GAAAG,YAAA,CAAAG,eAAA;AAGlB,IAAIf,QAAA,QAAa;AAEjB,IAAIO,cAAS;AACb,IAAIF,WAAQ;AACnB,IAAIP,SAAA,GAAY,CAAAgB,mBAAA,CAAAE,QAAA,aAAAF,mBAAA,CAAAE,QAAA,uBAAAF,mBAAA,CAAAE,QAAA,CAAAC,EAAA,mBAAAC,OAAA,CAAAC,GAAA,CAAAC,oBAAA,kBAAAF,OAAA,CAAAC,GAAA,CAAAC,oBAAA;AAAA,IACZlB,KAAK,IAAAY,mBAAA,CAAAE,QAAA,aAAAF,mBAAA,CAAAE,QAAA,uBAAAF,mBAAA,CAAAE,QAAA,CAAAC,EAAA,eAAAC,OAAA,CAAAC,GAAA,CAAAC,oBAAA,cAAAF,OAAA,CAAAC,GAAA,CAAAC,oBAAA;AAAA,IACLhB,IAAA,GAAS,CAAAU,mBAAA,CAAAE,QAAA,aAAAF,mBAAA,CAAAE,QAAA,uBAAAF,mBAAA,CAAAE,QAAA,CAAAZ,IAAA,KAAAc,OAAA,CAAAC,GAAA,CAAAC,oBAAA,oBAAAF,OAAA,CAAAC,GAAA,CAAAC,oBAAA;AACb,IAAAvB,eAAA,KAAAiB,mBAAA,CAAAE,QAAA,aAAAF,mBAAA,CAAAE,QAAA,uBAAAF,mBAAA,CAAAE,QAAA,CAAAC,EAAA;EAMWI,GAAI;EAKfC,OAAK;AACD,EAAAR,mBAAY,CAAAE,QAAA,CAAiBC,EAAA","ignoreList":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
8
|
+
get: () => from[key],
|
|
9
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
16
|
+
value: true
|
|
17
|
+
}), mod);
|
|
18
|
+
var index_exports = {};
|
|
19
|
+
module.exports = __toCommonJS(index_exports);
|
|
20
|
+
__reExport(index_exports, require("./constants.cjs"), module.exports);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __copyProps = (to, from, except, desc) => {
|
|
8
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
9
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
10
|
+
get: () => from[key],
|
|
11
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
return to;
|
|
15
|
+
};
|
|
16
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
17
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
18
|
+
value: true
|
|
19
|
+
}), mod);
|
|
20
|
+
var index_exports = {};
|
|
21
|
+
module.exports = __toCommonJS(index_exports);
|
|
22
|
+
__reExport(index_exports, require("./constants.native.js"), module.exports);
|
|
23
|
+
//# sourceMappingURL=index.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","module","exports"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAP,YAAc,CAAAK,aAAA","ignoreList":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { useEffect, useLayoutEffect } from "react";
|
|
2
|
+
const isWeb = true;
|
|
3
|
+
const isBrowser = typeof document !== "undefined";
|
|
4
|
+
const isServer = !isBrowser;
|
|
5
|
+
const isClient = isBrowser;
|
|
6
|
+
const isWindowDefined = isBrowser;
|
|
7
|
+
const useIsomorphicLayoutEffect = isServer ? useEffect : useLayoutEffect;
|
|
8
|
+
const isChrome = typeof navigator !== "undefined" && /Chrome/.test(navigator.userAgent || "");
|
|
9
|
+
const isWebTouchable = isClient && ("ontouchstart" in window || navigator.maxTouchPoints > 0);
|
|
10
|
+
const isTouchable = isWebTouchable;
|
|
11
|
+
const isAndroid = process.env.TEST_NATIVE_PLATFORM === "android" || process.env.TEST_NATIVE_PLATFORM === "androidtv";
|
|
12
|
+
const isIos = process.env.TEST_NATIVE_PLATFORM === "ios" || process.env.TEST_NATIVE_PLATFORM === "tvos";
|
|
13
|
+
const isTV = process.env.TEST_NATIVE_PLATFORM === "androidtv" || process.env.TEST_NATIVE_PLATFORM === "tvos";
|
|
14
|
+
const currentPlatform = "web";
|
|
15
|
+
export { currentPlatform, isAndroid, isBrowser, isChrome, isClient, isIos, isServer, isTV, isTouchable, isWeb, isWebTouchable, isWindowDefined, useIsomorphicLayoutEffect };
|
|
16
|
+
//# sourceMappingURL=constants.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useEffect","useLayoutEffect","isWeb","isBrowser","document","isServer","isClient","isWindowDefined","useIsomorphicLayoutEffect","isChrome","navigator","test","userAgent","isWebTouchable","window","maxTouchPoints","isTouchable","isAndroid","process","env","TEST_NATIVE_PLATFORM","isIos","isTV","currentPlatform"],"sources":["../../src/constants.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,SAAA,EAAWC,eAAA,QAAuB;AAEpC,MAAMC,KAAA,GAAiB;AAGvB,MAAMC,SAAA,GAAqB,OAAOC,QAAA,KAAa;AAC/C,MAAMC,QAAA,GAAoB,CAAAF,SAAU;AACpC,MAAMG,QAAA,GAAoBH,SAAS;AAEnC,MAAMI,eAAA,GAA2BJ,SAAA;AAEjC,MAAMK,yBAAA,GAA8CH,QAAA,GACvDL,SAAA,GACAC,eAAA;AAEG,MAAMQ,QAAA,GACX,OAAOC,SAAA,KAAc,eAAe,SAASC,IAAA,CAAKD,SAAA,CAAUE,SAAA,IAAa,EAAE;AAEtE,MAAMC,cAAA,GACXP,QAAA,KAAa,kBAAkBQ,MAAA,IAAUJ,SAAA,CAAUK,cAAA,GAAiB;AAE/D,MAAMC,WAAA,GAAuBH,cAAU;AAKvC,MAAMI,SAAA,GACXC,OAAA,CAAQC,GAAA,CAAIC,oBAAA,KAAyB,aAAAF,OAAA,CAAAC,GAAA,CAAAC,oBAAA;AAErC,MAAAC,KAAQ,GAAIH,OAAA,CAAAC,GAAA,CAAAC,oBAAyB,cAAAF,OAAA,CAAAC,GAAA,CAAAC,oBAAA;AAChC,MAAME,IAAA,GAAAJ,OACX,CAAAC,GAAQ,CAAAC,oBAAI,gBAAyB,IAAAF,OAAA,CAAAC,GAAA,CAAAC,oBAAA;AAErC,MAAAG,eAAY;AACP,SAAMA,eACH,EAAIN,SAAA,EAAAd,SAAA,EAAAM,QAAyB,EAAAH,QACrC,EAAAe,KAAQ,EAAAhB,QAAI,EAAAiB,IAAA,EAAAN,WAAyB,EAAAd,KAAA,EAAAW,cAAA,EAAAN,eAAA,EAAAC,yBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { useLayoutEffect } from "react";
|
|
2
|
+
import { Platform } from "react-native";
|
|
3
|
+
var isWeb = false;
|
|
4
|
+
var isBrowser = false;
|
|
5
|
+
var isServer = false;
|
|
6
|
+
var isClient = true;
|
|
7
|
+
var isWindowDefined = false;
|
|
8
|
+
var useIsomorphicLayoutEffect = useLayoutEffect;
|
|
9
|
+
var isChrome = false;
|
|
10
|
+
var isWebTouchable = false;
|
|
11
|
+
var isTouchable = true;
|
|
12
|
+
var isAndroid = (Platform === null || Platform === void 0 ? void 0 : Platform.OS) === "android" || process.env.TEST_NATIVE_PLATFORM === "android" || process.env.TEST_NATIVE_PLATFORM === "androidtv";
|
|
13
|
+
var isIos = (Platform === null || Platform === void 0 ? void 0 : Platform.OS) === "ios" || process.env.TEST_NATIVE_PLATFORM === "ios" || process.env.TEST_NATIVE_PLATFORM === "tvos";
|
|
14
|
+
var isTV = (Platform === null || Platform === void 0 ? void 0 : Platform.isTV) || process.env.TEST_NATIVE_PLATFORM === "androidtv" || process.env.TEST_NATIVE_PLATFORM === "tvos";
|
|
15
|
+
var currentPlatform = ((Platform === null || Platform === void 0 ? void 0 : Platform.OS) ? {
|
|
16
|
+
ios: "ios",
|
|
17
|
+
android: "android"
|
|
18
|
+
}[Platform.OS] : void 0) || "native";
|
|
19
|
+
export { currentPlatform, isAndroid, isBrowser, isChrome, isClient, isIos, isServer, isTV, isTouchable, isWeb, isWebTouchable, isWindowDefined, useIsomorphicLayoutEffect };
|
|
20
|
+
//# sourceMappingURL=constants.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useLayoutEffect","Platform","isWeb","isBrowser","isServer","isClient","isWindowDefined","useIsomorphicLayoutEffect","isChrome","isWebTouchable","isTouchable","isAndroid","OS","process","env","TEST_NATIVE_PLATFORM","isIos","isTV","currentPlatform","ios","android"],"sources":["../../src/constants.native.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,eAAA,QAAuB;AAChC,SAASC,QAAA,QAAgB;AAClB,IAAIC,KAAA,GAAQ;AACZ,IAAIC,SAAA,GAAY;AAChB,IAAIC,QAAA,GAAW;AACf,IAAIC,QAAA,GAAW;AAC0B,IAAIC,eAAA,GAAkB;AAC/D,IAAIC,yBAAA,GAA4BP,eAAA;AAChC,IAAIQ,QAAA,GAAW;AACf,IAAIC,cAAA,GAAiB;AACrB,IAAIC,WAAA,GAAc;AAGlB,IAAIC,SAAA,IAAaV,QAAA,KAAa,QAAQA,QAAA,KAAa,SAAS,SAASA,QAAA,CAASW,EAAA,MAAQ,aAAaC,OAAA,CAAQC,GAAA,CAAIC,oBAAA,KAAyB,aAAaF,OAAA,CAAQC,GAAA,CAAIC,oBAAA,KAAyB;AAE1L,IAAIC,KAAA,IAASf,QAAA,KAAa,QAAQA,QAAA,KAAa,SAAS,SAASA,QAAA,CAASW,EAAA,MAAQ,SAASC,OAAA,CAAQC,GAAA,CAAIC,oBAAA,KAAyB,SAASF,OAAA,CAAQC,GAAA,CAAIC,oBAAA,KAAyB;AAC9K,IAAIE,IAAA,IAAQhB,QAAA,KAAa,QAAQA,QAAA,KAAa,SAAS,SAASA,QAAA,CAASgB,IAAA,KAASJ,OAAA,CAAQC,GAAA,CAAIC,oBAAA,KAAyB,eAAeF,OAAA,CAAQC,GAAA,CAAIC,oBAAA,KAAyB;AAClL,IAAIG,eAAY,KAAAjB,QAAA,aAAAA,QAAA,uBAAAA,QAAA,CAAAW,EAAA;EAAAO,GACZ,OAAK;EAAAC,OACL;AACJ,EAAAnB,QAAA,CAAAW,EAAA;AAMW,SAAIM,eAAoB,EAAAP,SAAA,EAAaR,SAAQ,EAAAK,QAAA,EAAaH,QAAA,EAASW,KAAA,EAAAZ,QAAS,EAASa,IAAA,EAAMP,WAAU,EAAAR,KAAA,EAASO,cAAM,EAAcH,eAAA,EAAAC,yBAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@hanzogui/constants",
|
|
3
|
+
"version": "2.0.0-rc.41-hanzoai.5",
|
|
4
|
+
"gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
|
|
5
|
+
"files": [
|
|
6
|
+
"src",
|
|
7
|
+
"types",
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"type": "module",
|
|
11
|
+
"sideEffects": false,
|
|
12
|
+
"main": "dist/cjs",
|
|
13
|
+
"module": "dist/esm",
|
|
14
|
+
"types": "./types/index.d.ts",
|
|
15
|
+
"exports": {
|
|
16
|
+
"./package.json": "./package.json",
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./types/index.d.ts",
|
|
19
|
+
"react-native": "./dist/esm/index.native.js",
|
|
20
|
+
"browser": "./dist/esm/index.mjs",
|
|
21
|
+
"module": "./dist/esm/index.mjs",
|
|
22
|
+
"import": "./dist/esm/index.mjs",
|
|
23
|
+
"require": "./dist/cjs/index.cjs",
|
|
24
|
+
"default": "./dist/esm/index.mjs"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"publishConfig": {
|
|
28
|
+
"access": "public"
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "hanzogui-build",
|
|
32
|
+
"watch": "hanzogui-build --watch",
|
|
33
|
+
"clean": "hanzogui-build clean",
|
|
34
|
+
"clean:build": "hanzogui-build clean:build"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@hanzogui/build": "2.0.0-rc.41-hanzoai.5",
|
|
38
|
+
"react": ">=19",
|
|
39
|
+
"react-native": "0.83.2"
|
|
40
|
+
},
|
|
41
|
+
"peerDependencies": {
|
|
42
|
+
"react": ">=19",
|
|
43
|
+
"react-native": "*"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { useLayoutEffect, type useEffect } from 'react'
|
|
2
|
+
import { Platform } from 'react-native'
|
|
3
|
+
|
|
4
|
+
export const isWeb: boolean = false
|
|
5
|
+
export const isBrowser: boolean = false
|
|
6
|
+
export const isServer: boolean = false
|
|
7
|
+
export const isClient: boolean = true
|
|
8
|
+
/** @deprecated use isBrowser instead */
|
|
9
|
+
export const isWindowDefined: boolean = false
|
|
10
|
+
export const useIsomorphicLayoutEffect: typeof useEffect = useLayoutEffect
|
|
11
|
+
export const isChrome: boolean = false
|
|
12
|
+
export const isWebTouchable: boolean = false
|
|
13
|
+
export const isTouchable: boolean = true
|
|
14
|
+
// optional chain required: babel extractor loads native.cjs in node where Platform is undefined
|
|
15
|
+
// On Android TV: Platform.OS === 'android' per react-native-tvos
|
|
16
|
+
export const isAndroid: boolean =
|
|
17
|
+
Platform?.OS === 'android' ||
|
|
18
|
+
process.env.TEST_NATIVE_PLATFORM === 'android' ||
|
|
19
|
+
process.env.TEST_NATIVE_PLATFORM === 'androidtv'
|
|
20
|
+
// On tvOS: Platform.OS === 'ios' per react-native-tvos
|
|
21
|
+
export const isIos: boolean =
|
|
22
|
+
Platform?.OS === 'ios' ||
|
|
23
|
+
process.env.TEST_NATIVE_PLATFORM === 'ios' ||
|
|
24
|
+
process.env.TEST_NATIVE_PLATFORM === 'tvos'
|
|
25
|
+
export const isTV: boolean =
|
|
26
|
+
Platform?.isTV ||
|
|
27
|
+
process.env.TEST_NATIVE_PLATFORM === 'androidtv' ||
|
|
28
|
+
process.env.TEST_NATIVE_PLATFORM === 'tvos'
|
|
29
|
+
|
|
30
|
+
const platforms = { ios: 'ios', android: 'android' } as const
|
|
31
|
+
/**
|
|
32
|
+
* Reflects Platform.OS. TV platforms are intentionally NOT separate values:
|
|
33
|
+
* - Android TV has Platform.OS === 'android' (react-native-tvos behavior)
|
|
34
|
+
* - tvOS has Platform.OS === 'ios' (react-native-tvos behavior)
|
|
35
|
+
* Use `isTV` combined with `isAndroid`/`isIos` to detect specific TV platforms.
|
|
36
|
+
*/
|
|
37
|
+
export const currentPlatform: 'web' | 'ios' | 'native' | 'android' =
|
|
38
|
+
(Platform?.OS ? platforms[Platform.OS] : undefined) || 'native'
|
|
39
|
+
|
|
40
|
+
// In Metro source mode, TAMAGUI_TARGET may not be set by the build tool.
|
|
41
|
+
// Set it here so all process.env.TAMAGUI_TARGET runtime checks work correctly.
|
|
42
|
+
// In pre-built dist, the build tool inlines TAMAGUI_TARGET as a literal string,
|
|
43
|
+
// making this block dead code (if (!'native') → never executes).
|
|
44
|
+
if (!process.env.TAMAGUI_TARGET) {
|
|
45
|
+
process.env.TAMAGUI_TARGET = 'native'
|
|
46
|
+
}
|
package/src/constants.ts
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { useEffect, useLayoutEffect } from 'react'
|
|
2
|
+
|
|
3
|
+
export const isWeb: boolean = true
|
|
4
|
+
// check document not window — RN polyfills global.window but not document,
|
|
5
|
+
// so this is the only reliable "is DOM environment" check.
|
|
6
|
+
export const isBrowser: boolean = typeof document !== 'undefined'
|
|
7
|
+
export const isServer: boolean = isWeb && !isBrowser
|
|
8
|
+
export const isClient: boolean = isWeb && isBrowser
|
|
9
|
+
/** @deprecated use isBrowser instead */
|
|
10
|
+
export const isWindowDefined: boolean = isBrowser
|
|
11
|
+
|
|
12
|
+
export const useIsomorphicLayoutEffect: typeof useEffect = isServer
|
|
13
|
+
? useEffect
|
|
14
|
+
: useLayoutEffect
|
|
15
|
+
|
|
16
|
+
export const isChrome: boolean =
|
|
17
|
+
typeof navigator !== 'undefined' && /Chrome/.test(navigator.userAgent || '')
|
|
18
|
+
|
|
19
|
+
export const isWebTouchable: boolean =
|
|
20
|
+
isClient && ('ontouchstart' in window || navigator.maxTouchPoints > 0)
|
|
21
|
+
|
|
22
|
+
export const isTouchable: boolean = !isWeb || isWebTouchable
|
|
23
|
+
// set :boolean to avoid inferring type to false
|
|
24
|
+
// On web, isAndroid/isIos are always false in production.
|
|
25
|
+
// TEST_NATIVE_PLATFORM is only set by the test runner (vitest) to simulate native
|
|
26
|
+
// environments (e.g. androidtv, tvos) from a web/jsdom test context.
|
|
27
|
+
export const isAndroid: boolean =
|
|
28
|
+
process.env.TEST_NATIVE_PLATFORM === 'android' ||
|
|
29
|
+
// Android TV has Platform.OS === 'android' per react-native-tvos
|
|
30
|
+
process.env.TEST_NATIVE_PLATFORM === 'androidtv'
|
|
31
|
+
export const isIos: boolean =
|
|
32
|
+
process.env.TEST_NATIVE_PLATFORM === 'ios' ||
|
|
33
|
+
// tvOS has Platform.OS === 'ios' per react-native-tvos
|
|
34
|
+
process.env.TEST_NATIVE_PLATFORM === 'tvos'
|
|
35
|
+
export const isTV: boolean =
|
|
36
|
+
process.env.TEST_NATIVE_PLATFORM === 'androidtv' ||
|
|
37
|
+
process.env.TEST_NATIVE_PLATFORM === 'tvos'
|
|
38
|
+
/**
|
|
39
|
+
* Reflects Platform.OS. TV platforms are intentionally NOT separate values:
|
|
40
|
+
* - Android TV has Platform.OS === 'android' (react-native-tvos behavior)
|
|
41
|
+
* - tvOS has Platform.OS === 'ios' (react-native-tvos behavior)
|
|
42
|
+
* Use `isTV` combined with `isAndroid`/`isIos` to detect specific TV platforms.
|
|
43
|
+
*/
|
|
44
|
+
export const currentPlatform: 'web' | 'ios' | 'native' | 'android' = 'web'
|
|
45
|
+
|
|
46
|
+
// In web source mode (Vite/webpack without pre-built dist), TAMAGUI_TARGET may not be set.
|
|
47
|
+
// Set it here so all process.env.TAMAGUI_TARGET runtime checks work correctly.
|
|
48
|
+
// In pre-built dist, the build tool inlines TAMAGUI_TARGET as a literal string,
|
|
49
|
+
// making this block dead code (if (!'web') → never executes).
|
|
50
|
+
if (!process.env.TAMAGUI_TARGET) {
|
|
51
|
+
process.env.TAMAGUI_TARGET = 'web'
|
|
52
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './constants'
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { useEffect } from "react";
|
|
2
|
+
export declare const isWeb: boolean;
|
|
3
|
+
export declare const isBrowser: boolean;
|
|
4
|
+
export declare const isServer: boolean;
|
|
5
|
+
export declare const isClient: boolean;
|
|
6
|
+
/** @deprecated use isBrowser instead */
|
|
7
|
+
export declare const isWindowDefined: boolean;
|
|
8
|
+
export declare const useIsomorphicLayoutEffect: typeof useEffect;
|
|
9
|
+
export declare const isChrome: boolean;
|
|
10
|
+
export declare const isWebTouchable: boolean;
|
|
11
|
+
export declare const isTouchable: boolean;
|
|
12
|
+
export declare const isAndroid: boolean;
|
|
13
|
+
export declare const isIos: boolean;
|
|
14
|
+
export declare const isTV: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Reflects Platform.OS. TV platforms are intentionally NOT separate values:
|
|
17
|
+
* - Android TV has Platform.OS === 'android' (react-native-tvos behavior)
|
|
18
|
+
* - tvOS has Platform.OS === 'ios' (react-native-tvos behavior)
|
|
19
|
+
* Use `isTV` combined with `isAndroid`/`isIos` to detect specific TV platforms.
|
|
20
|
+
*/
|
|
21
|
+
export declare const currentPlatform: "web" | "ios" | "native" | "android";
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"mappings": "AAAA,SAAS,iBAAkC;AAE3C,OAAO,cAAM;AAGb,OAAO,cAAM;AACb,OAAO,cAAM;AACb,OAAO,cAAM;;AAEb,OAAO,cAAM;AAEb,OAAO,cAAM,kCAAkC;AAI/C,OAAO,cAAM;AAGb,OAAO,cAAM;AAGb,OAAO,cAAM;AAKb,OAAO,cAAM;AAIb,OAAO,cAAM;AAIb,OAAO,cAAM;;;;;;;AASb,OAAO,cAAM,iBAAiB,QAAQ,QAAQ,WAAW",
|
|
3
|
+
"names": [],
|
|
4
|
+
"sources": [
|
|
5
|
+
"src/constants.ts"
|
|
6
|
+
],
|
|
7
|
+
"version": 3,
|
|
8
|
+
"sourcesContent": [
|
|
9
|
+
"import { useEffect, useLayoutEffect } from 'react'\n\nexport const isWeb: boolean = true\n// check document not window — RN polyfills global.window but not document,\n// so this is the only reliable \"is DOM environment\" check.\nexport const isBrowser: boolean = typeof document !== 'undefined'\nexport const isServer: boolean = isWeb && !isBrowser\nexport const isClient: boolean = isWeb && isBrowser\n/** @deprecated use isBrowser instead */\nexport const isWindowDefined: boolean = isBrowser\n\nexport const useIsomorphicLayoutEffect: typeof useEffect = isServer\n ? useEffect\n : useLayoutEffect\n\nexport const isChrome: boolean =\n typeof navigator !== 'undefined' && /Chrome/.test(navigator.userAgent || '')\n\nexport const isWebTouchable: boolean =\n isClient && ('ontouchstart' in window || navigator.maxTouchPoints > 0)\n\nexport const isTouchable: boolean = !isWeb || isWebTouchable\n// set :boolean to avoid inferring type to false\n// On web, isAndroid/isIos are always false in production.\n// TEST_NATIVE_PLATFORM is only set by the test runner (vitest) to simulate native\n// environments (e.g. androidtv, tvos) from a web/jsdom test context.\nexport const isAndroid: boolean =\n process.env.TEST_NATIVE_PLATFORM === 'android' ||\n // Android TV has Platform.OS === 'android' per react-native-tvos\n process.env.TEST_NATIVE_PLATFORM === 'androidtv'\nexport const isIos: boolean =\n process.env.TEST_NATIVE_PLATFORM === 'ios' ||\n // tvOS has Platform.OS === 'ios' per react-native-tvos\n process.env.TEST_NATIVE_PLATFORM === 'tvos'\nexport const isTV: boolean =\n process.env.TEST_NATIVE_PLATFORM === 'androidtv' ||\n process.env.TEST_NATIVE_PLATFORM === 'tvos'\n/**\n * Reflects Platform.OS. TV platforms are intentionally NOT separate values:\n * - Android TV has Platform.OS === 'android' (react-native-tvos behavior)\n * - tvOS has Platform.OS === 'ios' (react-native-tvos behavior)\n * Use `isTV` combined with `isAndroid`/`isIos` to detect specific TV platforms.\n */\nexport const currentPlatform: 'web' | 'ios' | 'native' | 'android' = 'web'\n\n// In web source mode (Vite/webpack without pre-built dist), TAMAGUI_TARGET may not be set.\n// Set it here so all process.env.TAMAGUI_TARGET runtime checks work correctly.\n// In pre-built dist, the build tool inlines TAMAGUI_TARGET as a literal string,\n// making this block dead code (if (!'web') → never executes).\nif (!process.env.TAMAGUI_TARGET) {\n process.env.TAMAGUI_TARGET = 'web'\n}\n"
|
|
10
|
+
]
|
|
11
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type useEffect } from "react";
|
|
2
|
+
export declare const isWeb: boolean;
|
|
3
|
+
export declare const isBrowser: boolean;
|
|
4
|
+
export declare const isServer: boolean;
|
|
5
|
+
export declare const isClient: boolean;
|
|
6
|
+
/** @deprecated use isBrowser instead */
|
|
7
|
+
export declare const isWindowDefined: boolean;
|
|
8
|
+
export declare const useIsomorphicLayoutEffect: typeof useEffect;
|
|
9
|
+
export declare const isChrome: boolean;
|
|
10
|
+
export declare const isWebTouchable: boolean;
|
|
11
|
+
export declare const isTouchable: boolean;
|
|
12
|
+
export declare const isAndroid: boolean;
|
|
13
|
+
export declare const isIos: boolean;
|
|
14
|
+
export declare const isTV: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Reflects Platform.OS. TV platforms are intentionally NOT separate values:
|
|
17
|
+
* - Android TV has Platform.OS === 'android' (react-native-tvos behavior)
|
|
18
|
+
* - tvOS has Platform.OS === 'ios' (react-native-tvos behavior)
|
|
19
|
+
* Use `isTV` combined with `isAndroid`/`isIos` to detect specific TV platforms.
|
|
20
|
+
*/
|
|
21
|
+
export declare const currentPlatform: "web" | "ios" | "native" | "android";
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=constants.native.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"mappings": "AAAA,cAA+B,iBAAiB;AAGhD,OAAO,cAAM;AACb,OAAO,cAAM;AACb,OAAO,cAAM;AACb,OAAO,cAAM;;AAEb,OAAO,cAAM;AACb,OAAO,cAAM,kCAAkC;AAC/C,OAAO,cAAM;AACb,OAAO,cAAM;AACb,OAAO,cAAM;AAGb,OAAO,cAAM;AAKb,OAAO,cAAM;AAIb,OAAO,cAAM;;;;;;;AAYb,OAAO,cAAM,iBAAiB,QAAQ,QAAQ,WAAW",
|
|
3
|
+
"names": [],
|
|
4
|
+
"sources": [
|
|
5
|
+
"src/constants.native.ts"
|
|
6
|
+
],
|
|
7
|
+
"version": 3,
|
|
8
|
+
"sourcesContent": [
|
|
9
|
+
"import { useLayoutEffect, type useEffect } from 'react'\nimport { Platform } from 'react-native'\n\nexport const isWeb: boolean = false\nexport const isBrowser: boolean = false\nexport const isServer: boolean = false\nexport const isClient: boolean = true\n/** @deprecated use isBrowser instead */\nexport const isWindowDefined: boolean = false\nexport const useIsomorphicLayoutEffect: typeof useEffect = useLayoutEffect\nexport const isChrome: boolean = false\nexport const isWebTouchable: boolean = false\nexport const isTouchable: boolean = true\n// optional chain required: babel extractor loads native.cjs in node where Platform is undefined\n// On Android TV: Platform.OS === 'android' per react-native-tvos\nexport const isAndroid: boolean =\n Platform?.OS === 'android' ||\n process.env.TEST_NATIVE_PLATFORM === 'android' ||\n process.env.TEST_NATIVE_PLATFORM === 'androidtv'\n// On tvOS: Platform.OS === 'ios' per react-native-tvos\nexport const isIos: boolean =\n Platform?.OS === 'ios' ||\n process.env.TEST_NATIVE_PLATFORM === 'ios' ||\n process.env.TEST_NATIVE_PLATFORM === 'tvos'\nexport const isTV: boolean =\n Platform?.isTV ||\n process.env.TEST_NATIVE_PLATFORM === 'androidtv' ||\n process.env.TEST_NATIVE_PLATFORM === 'tvos'\n\nconst platforms = { ios: 'ios', android: 'android' } as const\n/**\n * Reflects Platform.OS. TV platforms are intentionally NOT separate values:\n * - Android TV has Platform.OS === 'android' (react-native-tvos behavior)\n * - tvOS has Platform.OS === 'ios' (react-native-tvos behavior)\n * Use `isTV` combined with `isAndroid`/`isIos` to detect specific TV platforms.\n */\nexport const currentPlatform: 'web' | 'ios' | 'native' | 'android' =\n (Platform?.OS ? platforms[Platform.OS] : undefined) || 'native'\n\n// In Metro source mode, TAMAGUI_TARGET may not be set by the build tool.\n// Set it here so all process.env.TAMAGUI_TARGET runtime checks work correctly.\n// In pre-built dist, the build tool inlines TAMAGUI_TARGET as a literal string,\n// making this block dead code (if (!'native') → never executes).\nif (!process.env.TAMAGUI_TARGET) {\n process.env.TAMAGUI_TARGET = 'native'\n}\n"
|
|
10
|
+
]
|
|
11
|
+
}
|
package/types/index.d.ts
ADDED