@tamagui/constants 1.123.0 → 1.123.2

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.
@@ -28,7 +28,10 @@ __export(constants_native_exports, {
28
28
  useIsomorphicLayoutEffect: () => useIsomorphicLayoutEffect
29
29
  });
30
30
  module.exports = __toCommonJS(constants_native_exports);
31
- var import_react = require("react"), isWeb = !1, isWindowDefined = !1, isServer = !1, isClient = !1, useIsomorphicLayoutEffect = import_react.useLayoutEffect, isChrome = !1, isWebTouchable = !1, isTouchable = !0, isAndroid = !1, isIos = process.env.TEST_NATIVE_PLATFORM === "ios", currentPlatform = "native";
31
+ var import_react = require("react"), import_react_native = require("react-native"), isWeb = !1, isWindowDefined = !1, isServer = !1, isClient = !1, useIsomorphicLayoutEffect = import_react.useLayoutEffect, isChrome = !1, isWebTouchable = !1, isTouchable = !0, isAndroid = import_react_native.Platform.OS === "android" || process.env.TEST_NATIVE_PLATFORM === "android", isIos = import_react_native.Platform.OS === "ios" || process.env.TEST_NATIVE_PLATFORM === "ios", platforms = {
32
+ ios: "ios",
33
+ android: "android"
34
+ }, currentPlatform = platforms[import_react_native.Platform.OS] || "native";
32
35
  // Annotate the CommonJS export names for ESM import in node:
33
36
  0 && (module.exports = {
34
37
  currentPlatform,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Users/n8/tamagui/code/core/constants/src/constants.native.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;mBAAgD,kBAEnCA,QAAiB,IACjBC,kBAA2B,IAC3BC,WAAoB,IACpBC,WAAoB,IACpBC,4BAA8CC,8BAC9CC,WAAoB,IACpBC,iBAA0B,IAC1BC,cAAuB,IACvBC,YAAqB,IACrBC,QAAiBC,QAAQC,IAAIC,yBAAyB,OACtDC,kBAAwD;",
5
- "names": ["isWeb", "isWindowDefined", "isServer", "isClient", "useIsomorphicLayoutEffect", "useLayoutEffect", "isChrome", "isWebTouchable", "isTouchable", "isAndroid", "isIos", "process", "env", "TEST_NATIVE_PLATFORM", "currentPlatform"]
4
+ "mappings": ";;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;mBAAgD,kBAChD,sBAAyB,yBAEZA,QAAiB,IACjBC,kBAA2B,IAC3BC,WAAoB,IACpBC,WAAoB,IACpBC,4BAA8CC,8BAC9CC,WAAoB,IACpBC,iBAA0B,IAC1BC,cAAuB,IACvBC,YACXC,6BAASC,OAAO,aAAaC,QAAQC,IAAIC,yBAAyB,WACvDC,QACXL,6BAASC,OAAO,SAASC,QAAQC,IAAIC,yBAAyB,OAE1DE,YAAY;EAAEC,KAAK;EAAOC,SAAS;AAAU,GACtCC,kBACXH,UAAUN,6BAASC,EAAE,KAAK;",
5
+ "names": ["isWeb", "isWindowDefined", "isServer", "isClient", "useIsomorphicLayoutEffect", "useLayoutEffect", "isChrome", "isWebTouchable", "isTouchable", "isAndroid", "Platform", "OS", "process", "env", "TEST_NATIVE_PLATFORM", "isIos", "platforms", "ios", "android", "currentPlatform"]
6
6
  }
@@ -1,5 +1,9 @@
1
1
  import { useLayoutEffect } from "react";
2
- var isWeb = !1, isWindowDefined = !1, isServer = !1, isClient = !1, useIsomorphicLayoutEffect = useLayoutEffect, isChrome = !1, isWebTouchable = !1, isTouchable = !0, isAndroid = !1, isIos = process.env.TEST_NATIVE_PLATFORM === "ios", currentPlatform = "native";
2
+ import { Platform } from "react-native";
3
+ var isWeb = !1, isWindowDefined = !1, isServer = !1, isClient = !1, useIsomorphicLayoutEffect = useLayoutEffect, isChrome = !1, isWebTouchable = !1, isTouchable = !0, isAndroid = Platform.OS === "android" || process.env.TEST_NATIVE_PLATFORM === "android", isIos = Platform.OS === "ios" || process.env.TEST_NATIVE_PLATFORM === "ios", platforms = {
4
+ ios: "ios",
5
+ android: "android"
6
+ }, currentPlatform = platforms[Platform.OS] || "native";
3
7
  export {
4
8
  currentPlatform,
5
9
  isAndroid,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Users/n8/tamagui/code/core/constants/src/constants.native.ts"],
4
- "mappings": "AAAA,SAASA,uBAAuC;AAEzC,IAAMC,QAAiB,IACjBC,kBAA2B,IAC3BC,WAAoB,IACpBC,WAAoB,IACpBC,4BAA8CL,iBAC9CM,WAAoB,IACpBC,iBAA0B,IAC1BC,cAAuB,IACvBC,YAAqB,IACrBC,QAAiBC,QAAQC,IAAIC,yBAAyB,OACtDC,kBAAwD;",
5
- "names": ["useLayoutEffect", "isWeb", "isWindowDefined", "isServer", "isClient", "useIsomorphicLayoutEffect", "isChrome", "isWebTouchable", "isTouchable", "isAndroid", "isIos", "process", "env", "TEST_NATIVE_PLATFORM", "currentPlatform"]
4
+ "mappings": "AAAA,SAASA,uBAAuC;AAChD,SAASC,gBAAgB;AAElB,IAAMC,QAAiB,IACjBC,kBAA2B,IAC3BC,WAAoB,IACpBC,WAAoB,IACpBC,4BAA8CN,iBAC9CO,WAAoB,IACpBC,iBAA0B,IAC1BC,cAAuB,IACvBC,YACXT,SAASU,OAAO,aAAaC,QAAQC,IAAIC,yBAAyB,WACvDC,QACXd,SAASU,OAAO,SAASC,QAAQC,IAAIC,yBAAyB,OAE1DE,YAAY;EAAEC,KAAK;EAAOC,SAAS;AAAU,GACtCC,kBACXH,UAAUf,SAASU,EAAE,KAAK;",
5
+ "names": ["useLayoutEffect", "Platform", "isWeb", "isWindowDefined", "isServer", "isClient", "useIsomorphicLayoutEffect", "isChrome", "isWebTouchable", "isTouchable", "isAndroid", "OS", "process", "env", "TEST_NATIVE_PLATFORM", "isIos", "platforms", "ios", "android", "currentPlatform"]
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/constants",
3
- "version": "1.123.0",
3
+ "version": "1.123.2",
4
4
  "types": "./types/index.d.ts",
5
5
  "main": "dist/cjs",
6
6
  "module": "dist/esm",
@@ -18,7 +18,7 @@
18
18
  "clean:build": "tamagui-build clean:build"
19
19
  },
20
20
  "devDependencies": {
21
- "@tamagui/build": "1.123.0",
21
+ "@tamagui/build": "1.123.2",
22
22
  "react": "*"
23
23
  },
24
24
  "exports": {
@@ -1,4 +1,5 @@
1
1
  import { useLayoutEffect, type useEffect } from 'react'
2
+ import { Platform } from 'react-native'
2
3
 
3
4
  export const isWeb: boolean = false
4
5
  export const isWindowDefined: boolean = false
@@ -8,6 +9,11 @@ export const useIsomorphicLayoutEffect: typeof useEffect = useLayoutEffect
8
9
  export const isChrome: boolean = false
9
10
  export const isWebTouchable: boolean = false
10
11
  export const isTouchable: boolean = true
11
- export const isAndroid: boolean = false
12
- export const isIos: boolean = process.env.TEST_NATIVE_PLATFORM === 'ios'
13
- export const currentPlatform: 'web' | 'ios' | 'native' | 'android' = 'native'
12
+ export const isAndroid: boolean =
13
+ Platform.OS === 'android' || process.env.TEST_NATIVE_PLATFORM === 'android'
14
+ export const isIos: boolean =
15
+ Platform.OS === 'ios' || process.env.TEST_NATIVE_PLATFORM === 'ios'
16
+
17
+ const platforms = { ios: 'ios', android: 'android' } as const
18
+ export const currentPlatform: 'web' | 'ios' | 'native' | 'android' =
19
+ platforms[Platform.OS] || 'native'
@@ -1,5 +1,5 @@
1
1
  {
2
- "mappings": "AAAA,cAA+B,iBAAiB,OAAO;AAEvD,OAAO,cAAMA;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC,kCAAkC;AAC/C,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC,iBAAiB,QAAQ,QAAQ,WAAW",
2
+ "mappings": "AAAA,cAA+B,iBAAiB,OAAO;AAGvD,OAAO,cAAMA;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC,kCAAkC;AAC/C,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC;AAEb,OAAO,cAAMC;AAIb,OAAO,cAAMC,iBAAiB,QAAQ,QAAQ,WAAW",
3
3
  "names": [
4
4
  "isWeb: boolean",
5
5
  "isWindowDefined: boolean",
@@ -17,7 +17,7 @@
17
17
  "src/constants.native.ts"
18
18
  ],
19
19
  "sourcesContent": [
20
- "import { useLayoutEffect, type useEffect } from 'react'\n\nexport const isWeb: boolean = false\nexport const isWindowDefined: boolean = false\nexport const isServer: boolean = false\nexport const isClient: boolean = false\nexport const useIsomorphicLayoutEffect: typeof useEffect = useLayoutEffect\nexport const isChrome: boolean = false\nexport const isWebTouchable: boolean = false\nexport const isTouchable: boolean = true\nexport const isAndroid: boolean = false\nexport const isIos: boolean = process.env.TEST_NATIVE_PLATFORM === 'ios'\nexport const currentPlatform: 'web' | 'ios' | 'native' | 'android' = 'native'\n"
20
+ "import { useLayoutEffect, type useEffect } from 'react'\nimport { Platform } from 'react-native'\n\nexport const isWeb: boolean = false\nexport const isWindowDefined: boolean = false\nexport const isServer: boolean = false\nexport const isClient: boolean = false\nexport const useIsomorphicLayoutEffect: typeof useEffect = useLayoutEffect\nexport const isChrome: boolean = false\nexport const isWebTouchable: boolean = false\nexport const isTouchable: boolean = true\nexport const isAndroid: boolean =\n Platform.OS === 'android' || process.env.TEST_NATIVE_PLATFORM === 'android'\nexport const isIos: boolean =\n Platform.OS === 'ios' || process.env.TEST_NATIVE_PLATFORM === 'ios'\n\nconst platforms = { ios: 'ios', android: 'android' } as const\nexport const currentPlatform: 'web' | 'ios' | 'native' | 'android' =\n platforms[Platform.OS] || 'native'\n"
21
21
  ],
22
22
  "version": 3
23
23
  }
@@ -1,46 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: !0 });
9
- }, __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from == "object" || typeof from == "function")
11
- for (let key of __getOwnPropNames(from))
12
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- return to;
14
- };
15
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
16
- var constants_android_exports = {};
17
- __export(constants_android_exports, {
18
- currentPlatform: () => currentPlatform,
19
- isAndroid: () => isAndroid,
20
- isChrome: () => isChrome,
21
- isClient: () => isClient,
22
- isIos: () => isIos,
23
- isServer: () => isServer,
24
- isTouchable: () => isTouchable,
25
- isWeb: () => isWeb,
26
- isWebTouchable: () => isWebTouchable,
27
- isWindowDefined: () => isWindowDefined,
28
- useIsomorphicLayoutEffect: () => useIsomorphicLayoutEffect
29
- });
30
- module.exports = __toCommonJS(constants_android_exports);
31
- var import_react = require("react"), isWeb = !1, isWindowDefined = !1, isServer = !1, isClient = !1, useIsomorphicLayoutEffect = import_react.useLayoutEffect, isChrome = !1, isWebTouchable = !1, isTouchable = !0, isAndroid = !0, isIos = !1, currentPlatform = "android";
32
- // Annotate the CommonJS export names for ESM import in node:
33
- 0 && (module.exports = {
34
- currentPlatform,
35
- isAndroid,
36
- isChrome,
37
- isClient,
38
- isIos,
39
- isServer,
40
- isTouchable,
41
- isWeb,
42
- isWebTouchable,
43
- isWindowDefined,
44
- useIsomorphicLayoutEffect
45
- });
46
- //# sourceMappingURL=constants.android.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Users/n8/tamagui/code/core/constants/src/constants.android.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;mBAAgC,kBAEnBA,QAAiB,IACjBC,kBAA2B,IAC3BC,WAAoB,IACpBC,WAAoB,IACpBC,4BAAoDC,8BACpDC,WAAoB,IACpBC,iBAA0B,IAC1BC,cAAuB,IACvBC,YAAqB,IACrBC,QAAiB,IACjBC,kBAAwD;",
5
- "names": ["isWeb", "isWindowDefined", "isServer", "isClient", "useIsomorphicLayoutEffect", "useLayoutEffect", "isChrome", "isWebTouchable", "isTouchable", "isAndroid", "isIos", "currentPlatform"]
6
- }
@@ -1,46 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: !0 });
9
- }, __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from == "object" || typeof from == "function")
11
- for (let key of __getOwnPropNames(from))
12
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- return to;
14
- };
15
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
16
- var constants_ios_exports = {};
17
- __export(constants_ios_exports, {
18
- currentPlatform: () => currentPlatform,
19
- isAndroid: () => isAndroid,
20
- isChrome: () => isChrome,
21
- isClient: () => isClient,
22
- isIos: () => isIos,
23
- isServer: () => isServer,
24
- isTouchable: () => isTouchable,
25
- isWeb: () => isWeb,
26
- isWebTouchable: () => isWebTouchable,
27
- isWindowDefined: () => isWindowDefined,
28
- useIsomorphicLayoutEffect: () => useIsomorphicLayoutEffect
29
- });
30
- module.exports = __toCommonJS(constants_ios_exports);
31
- var import_react = require("react"), isWeb = !1, isWindowDefined = !1, isServer = !1, isClient = !1, useIsomorphicLayoutEffect = import_react.useLayoutEffect, isChrome = !1, isWebTouchable = !1, isTouchable = !0, isAndroid = !1, isIos = !0, currentPlatform = "ios";
32
- // Annotate the CommonJS export names for ESM import in node:
33
- 0 && (module.exports = {
34
- currentPlatform,
35
- isAndroid,
36
- isChrome,
37
- isClient,
38
- isIos,
39
- isServer,
40
- isTouchable,
41
- isWeb,
42
- isWebTouchable,
43
- isWindowDefined,
44
- useIsomorphicLayoutEffect
45
- });
46
- //# sourceMappingURL=constants.ios.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Users/n8/tamagui/code/core/constants/src/constants.ios.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;mBAAgC,kBAEnBA,QAAiB,IACjBC,kBAA2B,IAC3BC,WAAoB,IACpBC,WAAoB,IACpBC,4BAAoDC,8BACpDC,WAAoB,IACpBC,iBAA0B,IAC1BC,cAAuB,IACvBC,YAAqB,IACrBC,QAAiB,IACjBC,kBAAwD;",
5
- "names": ["isWeb", "isWindowDefined", "isServer", "isClient", "useIsomorphicLayoutEffect", "useLayoutEffect", "isChrome", "isWebTouchable", "isTouchable", "isAndroid", "isIos", "currentPlatform"]
6
- }
@@ -1,16 +0,0 @@
1
- import { useLayoutEffect } from "react";
2
- var isWeb = !1, isWindowDefined = !1, isServer = !1, isClient = !1, useIsomorphicLayoutEffect = useLayoutEffect, isChrome = !1, isWebTouchable = !1, isTouchable = !0, isAndroid = !0, isIos = !1, currentPlatform = "android";
3
- export {
4
- currentPlatform,
5
- isAndroid,
6
- isChrome,
7
- isClient,
8
- isIos,
9
- isServer,
10
- isTouchable,
11
- isWeb,
12
- isWebTouchable,
13
- isWindowDefined,
14
- useIsomorphicLayoutEffect
15
- };
16
- //# sourceMappingURL=constants.android.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Users/n8/tamagui/code/core/constants/src/constants.android.ts"],
4
- "mappings": "AAAA,SAASA,uBAAuB;AAEzB,IAAMC,QAAiB,IACjBC,kBAA2B,IAC3BC,WAAoB,IACpBC,WAAoB,IACpBC,4BAAoDL,iBACpDM,WAAoB,IACpBC,iBAA0B,IAC1BC,cAAuB,IACvBC,YAAqB,IACrBC,QAAiB,IACjBC,kBAAwD;",
5
- "names": ["useLayoutEffect", "isWeb", "isWindowDefined", "isServer", "isClient", "useIsomorphicLayoutEffect", "isChrome", "isWebTouchable", "isTouchable", "isAndroid", "isIos", "currentPlatform"]
6
- }
@@ -1,16 +0,0 @@
1
- import { useLayoutEffect } from "react";
2
- var isWeb = !1, isWindowDefined = !1, isServer = !1, isClient = !1, useIsomorphicLayoutEffect = useLayoutEffect, isChrome = !1, isWebTouchable = !1, isTouchable = !0, isAndroid = !1, isIos = !0, currentPlatform = "ios";
3
- export {
4
- currentPlatform,
5
- isAndroid,
6
- isChrome,
7
- isClient,
8
- isIos,
9
- isServer,
10
- isTouchable,
11
- isWeb,
12
- isWebTouchable,
13
- isWindowDefined,
14
- useIsomorphicLayoutEffect
15
- };
16
- //# sourceMappingURL=constants.ios.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Users/n8/tamagui/code/core/constants/src/constants.ios.ts"],
4
- "mappings": "AAAA,SAASA,uBAAuB;AAEzB,IAAMC,QAAiB,IACjBC,kBAA2B,IAC3BC,WAAoB,IACpBC,WAAoB,IACpBC,4BAAoDL,iBACpDM,WAAoB,IACpBC,iBAA0B,IAC1BC,cAAuB,IACvBC,YAAqB,IACrBC,QAAiB,IACjBC,kBAAwD;",
5
- "names": ["useLayoutEffect", "isWeb", "isWindowDefined", "isServer", "isClient", "useIsomorphicLayoutEffect", "isChrome", "isWebTouchable", "isTouchable", "isAndroid", "isIos", "currentPlatform"]
6
- }
@@ -1,13 +0,0 @@
1
- import { useLayoutEffect } from 'react'
2
-
3
- export const isWeb: boolean = false
4
- export const isWindowDefined: boolean = false
5
- export const isServer: boolean = false
6
- export const isClient: boolean = false
7
- export const useIsomorphicLayoutEffect: typeof useLayoutEffect = useLayoutEffect
8
- export const isChrome: boolean = false
9
- export const isWebTouchable: boolean = false
10
- export const isTouchable: boolean = true
11
- export const isAndroid: boolean = true
12
- export const isIos: boolean = false
13
- export const currentPlatform: 'web' | 'ios' | 'native' | 'android' = 'android'
@@ -1,13 +0,0 @@
1
- import { useLayoutEffect } from 'react'
2
-
3
- export const isWeb: boolean = false
4
- export const isWindowDefined: boolean = false
5
- export const isServer: boolean = false
6
- export const isClient: boolean = false
7
- export const useIsomorphicLayoutEffect: typeof useLayoutEffect = useLayoutEffect
8
- export const isChrome: boolean = false
9
- export const isWebTouchable: boolean = false
10
- export const isTouchable: boolean = true
11
- export const isAndroid: boolean = false
12
- export const isIos: boolean = true
13
- export const currentPlatform: 'web' | 'ios' | 'native' | 'android' = 'ios'
@@ -1,14 +0,0 @@
1
- import { useLayoutEffect } from "react";
2
- export declare const isWeb: boolean;
3
- export declare const isWindowDefined: boolean;
4
- export declare const isServer: boolean;
5
- export declare const isClient: boolean;
6
- export declare const useIsomorphicLayoutEffect: typeof useLayoutEffect;
7
- export declare const isChrome: boolean;
8
- export declare const isWebTouchable: boolean;
9
- export declare const isTouchable: boolean;
10
- export declare const isAndroid: boolean;
11
- export declare const isIos: boolean;
12
- export declare const currentPlatform: "web" | "ios" | "native" | "android";
13
-
14
- //# sourceMappingURL=constants.android.d.ts.map
@@ -1,23 +0,0 @@
1
- {
2
- "mappings": "AAAA,SAAS,uBAAuB,OAAO;AAEvC,OAAO,cAAMA;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC,kCAAkC;AAC/C,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC,iBAAiB,QAAQ,QAAQ,WAAW",
3
- "names": [
4
- "isWeb: boolean",
5
- "isWindowDefined: boolean",
6
- "isServer: boolean",
7
- "isClient: boolean",
8
- "useIsomorphicLayoutEffect: typeof useLayoutEffect",
9
- "isChrome: boolean",
10
- "isWebTouchable: boolean",
11
- "isTouchable: boolean",
12
- "isAndroid: boolean",
13
- "isIos: boolean",
14
- "currentPlatform: 'web' | 'ios' | 'native' | 'android'"
15
- ],
16
- "sources": [
17
- "src/constants.android.ts"
18
- ],
19
- "sourcesContent": [
20
- "import { useLayoutEffect } from 'react'\n\nexport const isWeb: boolean = false\nexport const isWindowDefined: boolean = false\nexport const isServer: boolean = false\nexport const isClient: boolean = false\nexport const useIsomorphicLayoutEffect: typeof useLayoutEffect = useLayoutEffect\nexport const isChrome: boolean = false\nexport const isWebTouchable: boolean = false\nexport const isTouchable: boolean = true\nexport const isAndroid: boolean = true\nexport const isIos: boolean = false\nexport const currentPlatform: 'web' | 'ios' | 'native' | 'android' = 'android'\n"
21
- ],
22
- "version": 3
23
- }
@@ -1,14 +0,0 @@
1
- import { useLayoutEffect } from "react";
2
- export declare const isWeb: boolean;
3
- export declare const isWindowDefined: boolean;
4
- export declare const isServer: boolean;
5
- export declare const isClient: boolean;
6
- export declare const useIsomorphicLayoutEffect: typeof useLayoutEffect;
7
- export declare const isChrome: boolean;
8
- export declare const isWebTouchable: boolean;
9
- export declare const isTouchable: boolean;
10
- export declare const isAndroid: boolean;
11
- export declare const isIos: boolean;
12
- export declare const currentPlatform: "web" | "ios" | "native" | "android";
13
-
14
- //# sourceMappingURL=constants.ios.d.ts.map
@@ -1,23 +0,0 @@
1
- {
2
- "mappings": "AAAA,SAAS,uBAAuB,OAAO;AAEvC,OAAO,cAAMA;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC,kCAAkC;AAC/C,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC,iBAAiB,QAAQ,QAAQ,WAAW",
3
- "names": [
4
- "isWeb: boolean",
5
- "isWindowDefined: boolean",
6
- "isServer: boolean",
7
- "isClient: boolean",
8
- "useIsomorphicLayoutEffect: typeof useLayoutEffect",
9
- "isChrome: boolean",
10
- "isWebTouchable: boolean",
11
- "isTouchable: boolean",
12
- "isAndroid: boolean",
13
- "isIos: boolean",
14
- "currentPlatform: 'web' | 'ios' | 'native' | 'android'"
15
- ],
16
- "sources": [
17
- "src/constants.ios.ts"
18
- ],
19
- "sourcesContent": [
20
- "import { useLayoutEffect } from 'react'\n\nexport const isWeb: boolean = false\nexport const isWindowDefined: boolean = false\nexport const isServer: boolean = false\nexport const isClient: boolean = false\nexport const useIsomorphicLayoutEffect: typeof useLayoutEffect = useLayoutEffect\nexport const isChrome: boolean = false\nexport const isWebTouchable: boolean = false\nexport const isTouchable: boolean = true\nexport const isAndroid: boolean = false\nexport const isIos: boolean = true\nexport const currentPlatform: 'web' | 'ios' | 'native' | 'android' = 'ios'\n"
21
- ],
22
- "version": 3
23
- }