@tamagui/image 1.14.0 → 1.14.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.
- package/dist/cjs/Image.js +67 -1
- package/dist/cjs/Image.js.map +2 -2
- package/dist/cjs/index.js +18 -1
- package/dist/cjs/index.js.map +2 -2
- package/dist/esm/Image.js +48 -1
- package/dist/esm/Image.js.map +2 -2
- package/dist/esm/Image.mjs +48 -1
- package/dist/esm/Image.mjs.map +2 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/index.mjs.map +1 -1
- package/dist/jsx/Image.js +47 -1
- package/dist/jsx/Image.js.map +2 -2
- package/dist/jsx/Image.mjs +47 -1
- package/dist/jsx/Image.mjs.map +2 -2
- package/dist/jsx/index.js +1 -1
- package/dist/jsx/index.js.map +1 -1
- package/dist/jsx/index.mjs +1 -1
- package/dist/jsx/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/cjs/Image.js
CHANGED
|
@@ -1,2 +1,68 @@
|
|
|
1
|
-
"use strict";
|
|
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: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var Image_exports = {};
|
|
20
|
+
__export(Image_exports, {
|
|
21
|
+
Image: () => Image
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(Image_exports);
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
+
var import_core = require("@tamagui/core");
|
|
26
|
+
var import_react = require("react");
|
|
27
|
+
var import_react_native = require("react-native");
|
|
28
|
+
(0, import_core.setupReactNative)({
|
|
29
|
+
Image: import_react_native.Image
|
|
30
|
+
});
|
|
31
|
+
const StyledImage = (0, import_core.styled)(import_react_native.Image, {
|
|
32
|
+
name: "Image",
|
|
33
|
+
position: "relative",
|
|
34
|
+
source: { uri: "" },
|
|
35
|
+
zIndex: 1
|
|
36
|
+
});
|
|
37
|
+
let hasWarned = false;
|
|
38
|
+
const Image = StyledImage.extractable(
|
|
39
|
+
(0, import_react.forwardRef)((inProps, ref) => {
|
|
40
|
+
const props = (0, import_core.useMediaPropsActive)(inProps);
|
|
41
|
+
const { src, source, ...rest } = props;
|
|
42
|
+
if (process.env.NODE_ENV === "development") {
|
|
43
|
+
if (typeof src === "string") {
|
|
44
|
+
if (typeof props.width === "string" && props.width[0] !== "$" || typeof props.height === "string" && props.height[0] !== "$") {
|
|
45
|
+
if (!hasWarned) {
|
|
46
|
+
hasWarned = true;
|
|
47
|
+
console.warn(
|
|
48
|
+
`React Native expects a numerical width/height. If you want to use a percent you must define the "source" prop with width, height, and uri.`
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
const finalSource = typeof src === "string" ? { uri: src, ...import_core.isWeb && { width: props.width, height: props.height } } : source ?? src;
|
|
55
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledImage, { ref, source: finalSource, ...rest });
|
|
56
|
+
})
|
|
57
|
+
);
|
|
58
|
+
Image.getSize = import_react_native.Image.getSize;
|
|
59
|
+
Image.getSizeWithHeaders = import_react_native.Image.getSizeWithHeaders;
|
|
60
|
+
Image.prefetch = import_react_native.Image.prefetch;
|
|
61
|
+
Image.prefetchWithMetadata = import_react_native.Image.prefetchWithMetadata;
|
|
62
|
+
Image.abortPrefetch = import_react_native.Image.abortPrefetch;
|
|
63
|
+
Image.queryCache = import_react_native.Image.queryCache;
|
|
64
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
65
|
+
0 && (module.exports = {
|
|
66
|
+
Image
|
|
67
|
+
});
|
|
2
68
|
//# sourceMappingURL=Image.js.map
|
package/dist/cjs/Image.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Image.tsx"],
|
|
4
4
|
"sourcesContent": ["import {\n GetProps,\n RadiusTokens,\n SizeTokens,\n StackProps,\n ThemeValueFallback,\n isWeb,\n setupReactNative,\n styled,\n useMediaPropsActive,\n} from '@tamagui/core'\nimport React, { forwardRef } from 'react'\nimport { Image as RNImage } from 'react-native'\n\nsetupReactNative({\n Image: RNImage,\n})\n\nconst StyledImage = styled(RNImage, {\n name: 'Image',\n position: 'relative',\n source: { uri: '' },\n zIndex: 1,\n})\n\ntype StyledImageProps = Omit<GetProps<typeof StyledImage>, 'borderRadius'> & {\n borderRadius?: RadiusTokens\n}\n\ntype BaseProps = Omit<StyledImageProps, 'width' | 'height' | 'style' | 'onLayout'> & {\n width?: string | number | SizeTokens | ThemeValueFallback\n height?: string | number | SizeTokens | ThemeValueFallback\n\n /**\n * @deprecated use `source` instead to disambiguate width/height style from width/height of the actual image\n */\n src?: string | StyledImageProps['source']\n}\n\nexport type ImageProps = BaseProps & Omit<StackProps, keyof BaseProps>\n\ntype RNImageType = typeof RNImage\n\ntype ImageType = React.FC<ImageProps> & {\n getSize: RNImageType['getSize']\n getSizeWithHeaders: RNImageType['getSizeWithHeaders']\n prefetch: RNImageType['prefetch']\n prefetchWithMetadata: RNImageType['prefetchWithMetadata']\n abortPrefetch: RNImageType['abortPrefetch']\n queryCache: RNImageType['queryCache']\n}\n\nlet hasWarned = false\n\nexport const Image = StyledImage.extractable(\n forwardRef((inProps: ImageProps, ref) => {\n const props = useMediaPropsActive(inProps)\n const { src, source, ...rest } = props\n\n if (process.env.NODE_ENV === 'development') {\n if (typeof src === 'string') {\n if (\n (typeof props.width === 'string' && props.width[0] !== '$') ||\n (typeof props.height === 'string' && props.height[0] !== '$')\n ) {\n if (!hasWarned) {\n hasWarned = true\n console.warn(\n `React Native expects a numerical width/height. If you want to use a percent you must define the \"source\" prop with width, height, and uri.`\n )\n }\n }\n }\n }\n\n const finalSource =\n typeof src === 'string'\n ? { uri: src, ...(isWeb && { width: props.width, height: props.height }) }\n : source ?? src\n\n // must set defaultSource to allow SSR, default it to the same as src\n return <StyledImage ref={ref} source={finalSource} {...(rest as any)} />\n })\n) as any as ImageType\n\nImage.getSize = RNImage.getSize\nImage.getSizeWithHeaders = RNImage.getSizeWithHeaders\nImage.prefetch = RNImage.prefetch\nImage.prefetchWithMetadata = RNImage.prefetchWithMetadata\nImage.abortPrefetch = RNImage.abortPrefetch\nImage.queryCache = RNImage.queryCache\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAiFW;AAjFX,kBAUO;AACP,mBAAkC;AAClC,0BAAiC;AAAA,IAEjC,8BAAiB;AAAA,EACf,OAAO,oBAAAA;AACT,CAAC;AAED,MAAM,kBAAc,oBAAO,oBAAAA,OAAS;AAAA,EAClC,MAAM;AAAA,EACN,UAAU;AAAA,EACV,QAAQ,EAAE,KAAK,GAAG;AAAA,EAClB,QAAQ;AACV,CAAC;AA6BD,IAAI,YAAY;AAET,MAAM,QAAQ,YAAY;AAAA,MAC/B,yBAAW,CAAC,SAAqB,QAAQ;AACvC,UAAM,YAAQ,iCAAoB,OAAO;AACzC,UAAM,EAAE,KAAK,QAAQ,GAAG,KAAK,IAAI;AAEjC,QAAI,QAAQ,IAAI,aAAa,eAAe;AAC1C,UAAI,OAAO,QAAQ,UAAU;AAC3B,YACG,OAAO,MAAM,UAAU,YAAY,MAAM,MAAM,CAAC,MAAM,OACtD,OAAO,MAAM,WAAW,YAAY,MAAM,OAAO,CAAC,MAAM,KACzD;AACA,cAAI,CAAC,WAAW;AACd,wBAAY;AACZ,oBAAQ;AAAA,cACN;AAAA,YACF;AAAA,UACF;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAEA,UAAM,cACJ,OAAO,QAAQ,WACX,EAAE,KAAK,KAAK,GAAI,qBAAS,EAAE,OAAO,MAAM,OAAO,QAAQ,MAAM,OAAO,EAAG,IACvE,UAAU;AAGhB,WAAO,4CAAC,eAAY,KAAU,QAAQ,aAAc,GAAI,MAAc;AAAA,EACxE,CAAC;AACH;AAEA,MAAM,UAAU,oBAAAA,MAAQ;AACxB,MAAM,qBAAqB,oBAAAA,MAAQ;AACnC,MAAM,WAAW,oBAAAA,MAAQ;AACzB,MAAM,uBAAuB,oBAAAA,MAAQ;AACrC,MAAM,gBAAgB,oBAAAA,MAAQ;AAC9B,MAAM,aAAa,oBAAAA,MAAQ;",
|
|
6
|
+
"names": ["RNImage"]
|
|
7
7
|
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,2 +1,19 @@
|
|
|
1
|
-
"use strict";
|
|
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 __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
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", { value: true }), mod);
|
|
16
|
+
var src_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(src_exports);
|
|
18
|
+
__reExport(src_exports, require("./Image"), module.exports);
|
|
2
19
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.ts"],
|
|
4
4
|
"sourcesContent": ["export * from './Image'\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": [
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,oBAAd;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
package/dist/esm/Image.js
CHANGED
|
@@ -1,2 +1,49 @@
|
|
|
1
|
-
import{jsx
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import {
|
|
3
|
+
isWeb,
|
|
4
|
+
setupReactNative,
|
|
5
|
+
styled,
|
|
6
|
+
useMediaPropsActive
|
|
7
|
+
} from "@tamagui/core";
|
|
8
|
+
import { forwardRef } from "react";
|
|
9
|
+
import { Image as RNImage } from "react-native";
|
|
10
|
+
setupReactNative({
|
|
11
|
+
Image: RNImage
|
|
12
|
+
});
|
|
13
|
+
const StyledImage = styled(RNImage, {
|
|
14
|
+
name: "Image",
|
|
15
|
+
position: "relative",
|
|
16
|
+
source: { uri: "" },
|
|
17
|
+
zIndex: 1
|
|
18
|
+
});
|
|
19
|
+
let hasWarned = false;
|
|
20
|
+
const Image = StyledImage.extractable(
|
|
21
|
+
forwardRef((inProps, ref) => {
|
|
22
|
+
const props = useMediaPropsActive(inProps);
|
|
23
|
+
const { src, source, ...rest } = props;
|
|
24
|
+
if (process.env.NODE_ENV === "development") {
|
|
25
|
+
if (typeof src === "string") {
|
|
26
|
+
if (typeof props.width === "string" && props.width[0] !== "$" || typeof props.height === "string" && props.height[0] !== "$") {
|
|
27
|
+
if (!hasWarned) {
|
|
28
|
+
hasWarned = true;
|
|
29
|
+
console.warn(
|
|
30
|
+
`React Native expects a numerical width/height. If you want to use a percent you must define the "source" prop with width, height, and uri.`
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
const finalSource = typeof src === "string" ? { uri: src, ...isWeb && { width: props.width, height: props.height } } : source ?? src;
|
|
37
|
+
return /* @__PURE__ */ jsx(StyledImage, { ref, source: finalSource, ...rest });
|
|
38
|
+
})
|
|
39
|
+
);
|
|
40
|
+
Image.getSize = RNImage.getSize;
|
|
41
|
+
Image.getSizeWithHeaders = RNImage.getSizeWithHeaders;
|
|
42
|
+
Image.prefetch = RNImage.prefetch;
|
|
43
|
+
Image.prefetchWithMetadata = RNImage.prefetchWithMetadata;
|
|
44
|
+
Image.abortPrefetch = RNImage.abortPrefetch;
|
|
45
|
+
Image.queryCache = RNImage.queryCache;
|
|
46
|
+
export {
|
|
47
|
+
Image
|
|
48
|
+
};
|
|
2
49
|
//# sourceMappingURL=Image.js.map
|
package/dist/esm/Image.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Image.tsx"],
|
|
4
4
|
"sourcesContent": ["import {\n GetProps,\n RadiusTokens,\n SizeTokens,\n StackProps,\n ThemeValueFallback,\n isWeb,\n setupReactNative,\n styled,\n useMediaPropsActive,\n} from '@tamagui/core'\nimport React, { forwardRef } from 'react'\nimport { Image as RNImage } from 'react-native'\n\nsetupReactNative({\n Image: RNImage,\n})\n\nconst StyledImage = styled(RNImage, {\n name: 'Image',\n position: 'relative',\n source: { uri: '' },\n zIndex: 1,\n})\n\ntype StyledImageProps = Omit<GetProps<typeof StyledImage>, 'borderRadius'> & {\n borderRadius?: RadiusTokens\n}\n\ntype BaseProps = Omit<StyledImageProps, 'width' | 'height' | 'style' | 'onLayout'> & {\n width?: string | number | SizeTokens | ThemeValueFallback\n height?: string | number | SizeTokens | ThemeValueFallback\n\n /**\n * @deprecated use `source` instead to disambiguate width/height style from width/height of the actual image\n */\n src?: string | StyledImageProps['source']\n}\n\nexport type ImageProps = BaseProps & Omit<StackProps, keyof BaseProps>\n\ntype RNImageType = typeof RNImage\n\ntype ImageType = React.FC<ImageProps> & {\n getSize: RNImageType['getSize']\n getSizeWithHeaders: RNImageType['getSizeWithHeaders']\n prefetch: RNImageType['prefetch']\n prefetchWithMetadata: RNImageType['prefetchWithMetadata']\n abortPrefetch: RNImageType['abortPrefetch']\n queryCache: RNImageType['queryCache']\n}\n\nlet hasWarned = false\n\nexport const Image = StyledImage.extractable(\n forwardRef((inProps: ImageProps, ref) => {\n const props = useMediaPropsActive(inProps)\n const { src, source, ...rest } = props\n\n if (process.env.NODE_ENV === 'development') {\n if (typeof src === 'string') {\n if (\n (typeof props.width === 'string' && props.width[0] !== '$') ||\n (typeof props.height === 'string' && props.height[0] !== '$')\n ) {\n if (!hasWarned) {\n hasWarned = true\n console.warn(\n `React Native expects a numerical width/height. If you want to use a percent you must define the \"source\" prop with width, height, and uri.`\n )\n }\n }\n }\n }\n\n const finalSource =\n typeof src === 'string'\n ? { uri: src, ...(isWeb && { width: props.width, height: props.height }) }\n : source ?? src\n\n // must set defaultSource to allow SSR, default it to the same as src\n return <StyledImage ref={ref} source={finalSource} {...(rest as any)} />\n })\n) as any as ImageType\n\nImage.getSize = RNImage.getSize\nImage.getSizeWithHeaders = RNImage.getSizeWithHeaders\nImage.prefetch = RNImage.prefetch\nImage.prefetchWithMetadata = RNImage.prefetchWithMetadata\nImage.abortPrefetch = RNImage.abortPrefetch\nImage.queryCache = RNImage.queryCache\n"],
|
|
5
|
-
"mappings": "AAiFW,
|
|
6
|
-
"names": [
|
|
5
|
+
"mappings": "AAiFW;AAjFX;AAAA,EAME;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAgB,kBAAkB;AAClC,SAAS,SAAS,eAAe;AAEjC,iBAAiB;AAAA,EACf,OAAO;AACT,CAAC;AAED,MAAM,cAAc,OAAO,SAAS;AAAA,EAClC,MAAM;AAAA,EACN,UAAU;AAAA,EACV,QAAQ,EAAE,KAAK,GAAG;AAAA,EAClB,QAAQ;AACV,CAAC;AA6BD,IAAI,YAAY;AAET,MAAM,QAAQ,YAAY;AAAA,EAC/B,WAAW,CAAC,SAAqB,QAAQ;AACvC,UAAM,QAAQ,oBAAoB,OAAO;AACzC,UAAM,EAAE,KAAK,QAAQ,GAAG,KAAK,IAAI;AAEjC,QAAI,QAAQ,IAAI,aAAa,eAAe;AAC1C,UAAI,OAAO,QAAQ,UAAU;AAC3B,YACG,OAAO,MAAM,UAAU,YAAY,MAAM,MAAM,CAAC,MAAM,OACtD,OAAO,MAAM,WAAW,YAAY,MAAM,OAAO,CAAC,MAAM,KACzD;AACA,cAAI,CAAC,WAAW;AACd,wBAAY;AACZ,oBAAQ;AAAA,cACN;AAAA,YACF;AAAA,UACF;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAEA,UAAM,cACJ,OAAO,QAAQ,WACX,EAAE,KAAK,KAAK,GAAI,SAAS,EAAE,OAAO,MAAM,OAAO,QAAQ,MAAM,OAAO,EAAG,IACvE,UAAU;AAGhB,WAAO,oBAAC,eAAY,KAAU,QAAQ,aAAc,GAAI,MAAc;AAAA,EACxE,CAAC;AACH;AAEA,MAAM,UAAU,QAAQ;AACxB,MAAM,qBAAqB,QAAQ;AACnC,MAAM,WAAW,QAAQ;AACzB,MAAM,uBAAuB,QAAQ;AACrC,MAAM,gBAAgB,QAAQ;AAC9B,MAAM,aAAa,QAAQ;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
package/dist/esm/Image.mjs
CHANGED
|
@@ -1,2 +1,49 @@
|
|
|
1
|
-
import{jsx
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import {
|
|
3
|
+
isWeb,
|
|
4
|
+
setupReactNative,
|
|
5
|
+
styled,
|
|
6
|
+
useMediaPropsActive
|
|
7
|
+
} from "@tamagui/core";
|
|
8
|
+
import { forwardRef } from "react";
|
|
9
|
+
import { Image as RNImage } from "react-native";
|
|
10
|
+
setupReactNative({
|
|
11
|
+
Image: RNImage
|
|
12
|
+
});
|
|
13
|
+
const StyledImage = styled(RNImage, {
|
|
14
|
+
name: "Image",
|
|
15
|
+
position: "relative",
|
|
16
|
+
source: { uri: "" },
|
|
17
|
+
zIndex: 1
|
|
18
|
+
});
|
|
19
|
+
let hasWarned = false;
|
|
20
|
+
const Image = StyledImage.extractable(
|
|
21
|
+
forwardRef((inProps, ref) => {
|
|
22
|
+
const props = useMediaPropsActive(inProps);
|
|
23
|
+
const { src, source, ...rest } = props;
|
|
24
|
+
if (process.env.NODE_ENV === "development") {
|
|
25
|
+
if (typeof src === "string") {
|
|
26
|
+
if (typeof props.width === "string" && props.width[0] !== "$" || typeof props.height === "string" && props.height[0] !== "$") {
|
|
27
|
+
if (!hasWarned) {
|
|
28
|
+
hasWarned = true;
|
|
29
|
+
console.warn(
|
|
30
|
+
`React Native expects a numerical width/height. If you want to use a percent you must define the "source" prop with width, height, and uri.`
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
const finalSource = typeof src === "string" ? { uri: src, ...isWeb && { width: props.width, height: props.height } } : source ?? src;
|
|
37
|
+
return /* @__PURE__ */ jsx(StyledImage, { ref, source: finalSource, ...rest });
|
|
38
|
+
})
|
|
39
|
+
);
|
|
40
|
+
Image.getSize = RNImage.getSize;
|
|
41
|
+
Image.getSizeWithHeaders = RNImage.getSizeWithHeaders;
|
|
42
|
+
Image.prefetch = RNImage.prefetch;
|
|
43
|
+
Image.prefetchWithMetadata = RNImage.prefetchWithMetadata;
|
|
44
|
+
Image.abortPrefetch = RNImage.abortPrefetch;
|
|
45
|
+
Image.queryCache = RNImage.queryCache;
|
|
46
|
+
export {
|
|
47
|
+
Image
|
|
48
|
+
};
|
|
2
49
|
//# sourceMappingURL=Image.mjs.map
|
package/dist/esm/Image.mjs.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Image.tsx"],
|
|
4
4
|
"sourcesContent": ["import {\n GetProps,\n RadiusTokens,\n SizeTokens,\n StackProps,\n ThemeValueFallback,\n isWeb,\n setupReactNative,\n styled,\n useMediaPropsActive,\n} from '@tamagui/core'\nimport React, { forwardRef } from 'react'\nimport { Image as RNImage } from 'react-native'\n\nsetupReactNative({\n Image: RNImage,\n})\n\nconst StyledImage = styled(RNImage, {\n name: 'Image',\n position: 'relative',\n source: { uri: '' },\n zIndex: 1,\n})\n\ntype StyledImageProps = Omit<GetProps<typeof StyledImage>, 'borderRadius'> & {\n borderRadius?: RadiusTokens\n}\n\ntype BaseProps = Omit<StyledImageProps, 'width' | 'height' | 'style' | 'onLayout'> & {\n width?: string | number | SizeTokens | ThemeValueFallback\n height?: string | number | SizeTokens | ThemeValueFallback\n\n /**\n * @deprecated use `source` instead to disambiguate width/height style from width/height of the actual image\n */\n src?: string | StyledImageProps['source']\n}\n\nexport type ImageProps = BaseProps & Omit<StackProps, keyof BaseProps>\n\ntype RNImageType = typeof RNImage\n\ntype ImageType = React.FC<ImageProps> & {\n getSize: RNImageType['getSize']\n getSizeWithHeaders: RNImageType['getSizeWithHeaders']\n prefetch: RNImageType['prefetch']\n prefetchWithMetadata: RNImageType['prefetchWithMetadata']\n abortPrefetch: RNImageType['abortPrefetch']\n queryCache: RNImageType['queryCache']\n}\n\nlet hasWarned = false\n\nexport const Image = StyledImage.extractable(\n forwardRef((inProps: ImageProps, ref) => {\n const props = useMediaPropsActive(inProps)\n const { src, source, ...rest } = props\n\n if (process.env.NODE_ENV === 'development') {\n if (typeof src === 'string') {\n if (\n (typeof props.width === 'string' && props.width[0] !== '$') ||\n (typeof props.height === 'string' && props.height[0] !== '$')\n ) {\n if (!hasWarned) {\n hasWarned = true\n console.warn(\n `React Native expects a numerical width/height. If you want to use a percent you must define the \"source\" prop with width, height, and uri.`\n )\n }\n }\n }\n }\n\n const finalSource =\n typeof src === 'string'\n ? { uri: src, ...(isWeb && { width: props.width, height: props.height }) }\n : source ?? src\n\n // must set defaultSource to allow SSR, default it to the same as src\n return <StyledImage ref={ref} source={finalSource} {...(rest as any)} />\n })\n) as any as ImageType\n\nImage.getSize = RNImage.getSize\nImage.getSizeWithHeaders = RNImage.getSizeWithHeaders\nImage.prefetch = RNImage.prefetch\nImage.prefetchWithMetadata = RNImage.prefetchWithMetadata\nImage.abortPrefetch = RNImage.abortPrefetch\nImage.queryCache = RNImage.queryCache\n"],
|
|
5
|
-
"mappings": "AAiFW,
|
|
6
|
-
"names": [
|
|
5
|
+
"mappings": "AAiFW;AAjFX;AAAA,EAME;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAgB,kBAAkB;AAClC,SAAS,SAAS,eAAe;AAEjC,iBAAiB;AAAA,EACf,OAAO;AACT,CAAC;AAED,MAAM,cAAc,OAAO,SAAS;AAAA,EAClC,MAAM;AAAA,EACN,UAAU;AAAA,EACV,QAAQ,EAAE,KAAK,GAAG;AAAA,EAClB,QAAQ;AACV,CAAC;AA6BD,IAAI,YAAY;AAET,MAAM,QAAQ,YAAY;AAAA,EAC/B,WAAW,CAAC,SAAqB,QAAQ;AACvC,UAAM,QAAQ,oBAAoB,OAAO;AACzC,UAAM,EAAE,KAAK,QAAQ,GAAG,KAAK,IAAI;AAEjC,QAAI,QAAQ,IAAI,aAAa,eAAe;AAC1C,UAAI,OAAO,QAAQ,UAAU;AAC3B,YACG,OAAO,MAAM,UAAU,YAAY,MAAM,MAAM,CAAC,MAAM,OACtD,OAAO,MAAM,WAAW,YAAY,MAAM,OAAO,CAAC,MAAM,KACzD;AACA,cAAI,CAAC,WAAW;AACd,wBAAY;AACZ,oBAAQ;AAAA,cACN;AAAA,YACF;AAAA,UACF;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAEA,UAAM,cACJ,OAAO,QAAQ,WACX,EAAE,KAAK,KAAK,GAAI,SAAS,EAAE,OAAO,MAAM,OAAO,QAAQ,MAAM,OAAO,EAAG,IACvE,UAAU;AAGhB,WAAO,oBAAC,eAAY,KAAU,QAAQ,aAAc,GAAI,MAAc;AAAA,EACxE,CAAC;AACH;AAEA,MAAM,UAAU,QAAQ;AACxB,MAAM,qBAAqB,QAAQ;AACnC,MAAM,WAAW,QAAQ;AACzB,MAAM,uBAAuB,QAAQ;AACrC,MAAM,gBAAgB,QAAQ;AAC9B,MAAM,aAAa,QAAQ;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export*from"./Image";
|
|
1
|
+
export * from "./Image";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
package/dist/esm/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export*from"./Image";
|
|
1
|
+
export * from "./Image";
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/dist/esm/index.mjs.map
CHANGED
package/dist/jsx/Image.js
CHANGED
|
@@ -1,2 +1,48 @@
|
|
|
1
|
-
import
|
|
1
|
+
import {
|
|
2
|
+
isWeb,
|
|
3
|
+
setupReactNative,
|
|
4
|
+
styled,
|
|
5
|
+
useMediaPropsActive
|
|
6
|
+
} from "@tamagui/core";
|
|
7
|
+
import { forwardRef } from "react";
|
|
8
|
+
import { Image as RNImage } from "react-native";
|
|
9
|
+
setupReactNative({
|
|
10
|
+
Image: RNImage
|
|
11
|
+
});
|
|
12
|
+
const StyledImage = styled(RNImage, {
|
|
13
|
+
name: "Image",
|
|
14
|
+
position: "relative",
|
|
15
|
+
source: { uri: "" },
|
|
16
|
+
zIndex: 1
|
|
17
|
+
});
|
|
18
|
+
let hasWarned = false;
|
|
19
|
+
const Image = StyledImage.extractable(
|
|
20
|
+
forwardRef((inProps, ref) => {
|
|
21
|
+
const props = useMediaPropsActive(inProps);
|
|
22
|
+
const { src, source, ...rest } = props;
|
|
23
|
+
if (process.env.NODE_ENV === "development") {
|
|
24
|
+
if (typeof src === "string") {
|
|
25
|
+
if (typeof props.width === "string" && props.width[0] !== "$" || typeof props.height === "string" && props.height[0] !== "$") {
|
|
26
|
+
if (!hasWarned) {
|
|
27
|
+
hasWarned = true;
|
|
28
|
+
console.warn(
|
|
29
|
+
`React Native expects a numerical width/height. If you want to use a percent you must define the "source" prop with width, height, and uri.`
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
const finalSource = typeof src === "string" ? { uri: src, ...isWeb && { width: props.width, height: props.height } } : source ?? src;
|
|
36
|
+
return <StyledImage ref={ref} source={finalSource} {...rest} />;
|
|
37
|
+
})
|
|
38
|
+
);
|
|
39
|
+
Image.getSize = RNImage.getSize;
|
|
40
|
+
Image.getSizeWithHeaders = RNImage.getSizeWithHeaders;
|
|
41
|
+
Image.prefetch = RNImage.prefetch;
|
|
42
|
+
Image.prefetchWithMetadata = RNImage.prefetchWithMetadata;
|
|
43
|
+
Image.abortPrefetch = RNImage.abortPrefetch;
|
|
44
|
+
Image.queryCache = RNImage.queryCache;
|
|
45
|
+
export {
|
|
46
|
+
Image
|
|
47
|
+
};
|
|
2
48
|
//# sourceMappingURL=Image.js.map
|
package/dist/jsx/Image.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Image.tsx"],
|
|
4
4
|
"sourcesContent": ["import {\n GetProps,\n RadiusTokens,\n SizeTokens,\n StackProps,\n ThemeValueFallback,\n isWeb,\n setupReactNative,\n styled,\n useMediaPropsActive,\n} from '@tamagui/core'\nimport React, { forwardRef } from 'react'\nimport { Image as RNImage } from 'react-native'\n\nsetupReactNative({\n Image: RNImage,\n})\n\nconst StyledImage = styled(RNImage, {\n name: 'Image',\n position: 'relative',\n source: { uri: '' },\n zIndex: 1,\n})\n\ntype StyledImageProps = Omit<GetProps<typeof StyledImage>, 'borderRadius'> & {\n borderRadius?: RadiusTokens\n}\n\ntype BaseProps = Omit<StyledImageProps, 'width' | 'height' | 'style' | 'onLayout'> & {\n width?: string | number | SizeTokens | ThemeValueFallback\n height?: string | number | SizeTokens | ThemeValueFallback\n\n /**\n * @deprecated use `source` instead to disambiguate width/height style from width/height of the actual image\n */\n src?: string | StyledImageProps['source']\n}\n\nexport type ImageProps = BaseProps & Omit<StackProps, keyof BaseProps>\n\ntype RNImageType = typeof RNImage\n\ntype ImageType = React.FC<ImageProps> & {\n getSize: RNImageType['getSize']\n getSizeWithHeaders: RNImageType['getSizeWithHeaders']\n prefetch: RNImageType['prefetch']\n prefetchWithMetadata: RNImageType['prefetchWithMetadata']\n abortPrefetch: RNImageType['abortPrefetch']\n queryCache: RNImageType['queryCache']\n}\n\nlet hasWarned = false\n\nexport const Image = StyledImage.extractable(\n forwardRef((inProps: ImageProps, ref) => {\n const props = useMediaPropsActive(inProps)\n const { src, source, ...rest } = props\n\n if (process.env.NODE_ENV === 'development') {\n if (typeof src === 'string') {\n if (\n (typeof props.width === 'string' && props.width[0] !== '$') ||\n (typeof props.height === 'string' && props.height[0] !== '$')\n ) {\n if (!hasWarned) {\n hasWarned = true\n console.warn(\n `React Native expects a numerical width/height. If you want to use a percent you must define the \"source\" prop with width, height, and uri.`\n )\n }\n }\n }\n }\n\n const finalSource =\n typeof src === 'string'\n ? { uri: src, ...(isWeb && { width: props.width, height: props.height }) }\n : source ?? src\n\n // must set defaultSource to allow SSR, default it to the same as src\n return <StyledImage ref={ref} source={finalSource} {...(rest as any)} />\n })\n) as any as ImageType\n\nImage.getSize = RNImage.getSize\nImage.getSizeWithHeaders = RNImage.getSizeWithHeaders\nImage.prefetch = RNImage.prefetch\nImage.prefetchWithMetadata = RNImage.prefetchWithMetadata\nImage.abortPrefetch = RNImage.abortPrefetch\nImage.queryCache = RNImage.queryCache\n"],
|
|
5
|
-
"mappings": "AAAA,
|
|
6
|
-
"names": [
|
|
5
|
+
"mappings": "AAAA;AAAA,EAME;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAgB,kBAAkB;AAClC,SAAS,SAAS,eAAe;AAEjC,iBAAiB;AAAA,EACf,OAAO;AACT,CAAC;AAED,MAAM,cAAc,OAAO,SAAS;AAAA,EAClC,MAAM;AAAA,EACN,UAAU;AAAA,EACV,QAAQ,EAAE,KAAK,GAAG;AAAA,EAClB,QAAQ;AACV,CAAC;AA6BD,IAAI,YAAY;AAET,MAAM,QAAQ,YAAY;AAAA,EAC/B,WAAW,CAAC,SAAqB,QAAQ;AACvC,UAAM,QAAQ,oBAAoB,OAAO;AACzC,UAAM,EAAE,KAAK,QAAQ,GAAG,KAAK,IAAI;AAEjC,QAAI,QAAQ,IAAI,aAAa,eAAe;AAC1C,UAAI,OAAO,QAAQ,UAAU;AAC3B,YACG,OAAO,MAAM,UAAU,YAAY,MAAM,MAAM,CAAC,MAAM,OACtD,OAAO,MAAM,WAAW,YAAY,MAAM,OAAO,CAAC,MAAM,KACzD;AACA,cAAI,CAAC,WAAW;AACd,wBAAY;AACZ,oBAAQ;AAAA,cACN;AAAA,YACF;AAAA,UACF;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAEA,UAAM,cACJ,OAAO,QAAQ,WACX,EAAE,KAAK,KAAK,GAAI,SAAS,EAAE,OAAO,MAAM,OAAO,QAAQ,MAAM,OAAO,EAAG,IACvE,UAAU;AAGhB,WAAO,CAAC,YAAY,KAAK,KAAK,QAAQ,iBAAkB,MAAc;AAAA,EACxE,CAAC;AACH;AAEA,MAAM,UAAU,QAAQ;AACxB,MAAM,qBAAqB,QAAQ;AACnC,MAAM,WAAW,QAAQ;AACzB,MAAM,uBAAuB,QAAQ;AACrC,MAAM,gBAAgB,QAAQ;AAC9B,MAAM,aAAa,QAAQ;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
package/dist/jsx/Image.mjs
CHANGED
|
@@ -1,2 +1,48 @@
|
|
|
1
|
-
import
|
|
1
|
+
import {
|
|
2
|
+
isWeb,
|
|
3
|
+
setupReactNative,
|
|
4
|
+
styled,
|
|
5
|
+
useMediaPropsActive
|
|
6
|
+
} from "@tamagui/core";
|
|
7
|
+
import { forwardRef } from "react";
|
|
8
|
+
import { Image as RNImage } from "react-native";
|
|
9
|
+
setupReactNative({
|
|
10
|
+
Image: RNImage
|
|
11
|
+
});
|
|
12
|
+
const StyledImage = styled(RNImage, {
|
|
13
|
+
name: "Image",
|
|
14
|
+
position: "relative",
|
|
15
|
+
source: { uri: "" },
|
|
16
|
+
zIndex: 1
|
|
17
|
+
});
|
|
18
|
+
let hasWarned = false;
|
|
19
|
+
const Image = StyledImage.extractable(
|
|
20
|
+
forwardRef((inProps, ref) => {
|
|
21
|
+
const props = useMediaPropsActive(inProps);
|
|
22
|
+
const { src, source, ...rest } = props;
|
|
23
|
+
if (process.env.NODE_ENV === "development") {
|
|
24
|
+
if (typeof src === "string") {
|
|
25
|
+
if (typeof props.width === "string" && props.width[0] !== "$" || typeof props.height === "string" && props.height[0] !== "$") {
|
|
26
|
+
if (!hasWarned) {
|
|
27
|
+
hasWarned = true;
|
|
28
|
+
console.warn(
|
|
29
|
+
`React Native expects a numerical width/height. If you want to use a percent you must define the "source" prop with width, height, and uri.`
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
const finalSource = typeof src === "string" ? { uri: src, ...isWeb && { width: props.width, height: props.height } } : source ?? src;
|
|
36
|
+
return <StyledImage ref={ref} source={finalSource} {...rest} />;
|
|
37
|
+
})
|
|
38
|
+
);
|
|
39
|
+
Image.getSize = RNImage.getSize;
|
|
40
|
+
Image.getSizeWithHeaders = RNImage.getSizeWithHeaders;
|
|
41
|
+
Image.prefetch = RNImage.prefetch;
|
|
42
|
+
Image.prefetchWithMetadata = RNImage.prefetchWithMetadata;
|
|
43
|
+
Image.abortPrefetch = RNImage.abortPrefetch;
|
|
44
|
+
Image.queryCache = RNImage.queryCache;
|
|
45
|
+
export {
|
|
46
|
+
Image
|
|
47
|
+
};
|
|
2
48
|
//# sourceMappingURL=Image.mjs.map
|
package/dist/jsx/Image.mjs.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Image.tsx"],
|
|
4
4
|
"sourcesContent": ["import {\n GetProps,\n RadiusTokens,\n SizeTokens,\n StackProps,\n ThemeValueFallback,\n isWeb,\n setupReactNative,\n styled,\n useMediaPropsActive,\n} from '@tamagui/core'\nimport React, { forwardRef } from 'react'\nimport { Image as RNImage } from 'react-native'\n\nsetupReactNative({\n Image: RNImage,\n})\n\nconst StyledImage = styled(RNImage, {\n name: 'Image',\n position: 'relative',\n source: { uri: '' },\n zIndex: 1,\n})\n\ntype StyledImageProps = Omit<GetProps<typeof StyledImage>, 'borderRadius'> & {\n borderRadius?: RadiusTokens\n}\n\ntype BaseProps = Omit<StyledImageProps, 'width' | 'height' | 'style' | 'onLayout'> & {\n width?: string | number | SizeTokens | ThemeValueFallback\n height?: string | number | SizeTokens | ThemeValueFallback\n\n /**\n * @deprecated use `source` instead to disambiguate width/height style from width/height of the actual image\n */\n src?: string | StyledImageProps['source']\n}\n\nexport type ImageProps = BaseProps & Omit<StackProps, keyof BaseProps>\n\ntype RNImageType = typeof RNImage\n\ntype ImageType = React.FC<ImageProps> & {\n getSize: RNImageType['getSize']\n getSizeWithHeaders: RNImageType['getSizeWithHeaders']\n prefetch: RNImageType['prefetch']\n prefetchWithMetadata: RNImageType['prefetchWithMetadata']\n abortPrefetch: RNImageType['abortPrefetch']\n queryCache: RNImageType['queryCache']\n}\n\nlet hasWarned = false\n\nexport const Image = StyledImage.extractable(\n forwardRef((inProps: ImageProps, ref) => {\n const props = useMediaPropsActive(inProps)\n const { src, source, ...rest } = props\n\n if (process.env.NODE_ENV === 'development') {\n if (typeof src === 'string') {\n if (\n (typeof props.width === 'string' && props.width[0] !== '$') ||\n (typeof props.height === 'string' && props.height[0] !== '$')\n ) {\n if (!hasWarned) {\n hasWarned = true\n console.warn(\n `React Native expects a numerical width/height. If you want to use a percent you must define the \"source\" prop with width, height, and uri.`\n )\n }\n }\n }\n }\n\n const finalSource =\n typeof src === 'string'\n ? { uri: src, ...(isWeb && { width: props.width, height: props.height }) }\n : source ?? src\n\n // must set defaultSource to allow SSR, default it to the same as src\n return <StyledImage ref={ref} source={finalSource} {...(rest as any)} />\n })\n) as any as ImageType\n\nImage.getSize = RNImage.getSize\nImage.getSizeWithHeaders = RNImage.getSizeWithHeaders\nImage.prefetch = RNImage.prefetch\nImage.prefetchWithMetadata = RNImage.prefetchWithMetadata\nImage.abortPrefetch = RNImage.abortPrefetch\nImage.queryCache = RNImage.queryCache\n"],
|
|
5
|
-
"mappings": "AAAA,
|
|
6
|
-
"names": [
|
|
5
|
+
"mappings": "AAAA;AAAA,EAME;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAgB,kBAAkB;AAClC,SAAS,SAAS,eAAe;AAEjC,iBAAiB;AAAA,EACf,OAAO;AACT,CAAC;AAED,MAAM,cAAc,OAAO,SAAS;AAAA,EAClC,MAAM;AAAA,EACN,UAAU;AAAA,EACV,QAAQ,EAAE,KAAK,GAAG;AAAA,EAClB,QAAQ;AACV,CAAC;AA6BD,IAAI,YAAY;AAET,MAAM,QAAQ,YAAY;AAAA,EAC/B,WAAW,CAAC,SAAqB,QAAQ;AACvC,UAAM,QAAQ,oBAAoB,OAAO;AACzC,UAAM,EAAE,KAAK,QAAQ,GAAG,KAAK,IAAI;AAEjC,QAAI,QAAQ,IAAI,aAAa,eAAe;AAC1C,UAAI,OAAO,QAAQ,UAAU;AAC3B,YACG,OAAO,MAAM,UAAU,YAAY,MAAM,MAAM,CAAC,MAAM,OACtD,OAAO,MAAM,WAAW,YAAY,MAAM,OAAO,CAAC,MAAM,KACzD;AACA,cAAI,CAAC,WAAW;AACd,wBAAY;AACZ,oBAAQ;AAAA,cACN;AAAA,YACF;AAAA,UACF;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAEA,UAAM,cACJ,OAAO,QAAQ,WACX,EAAE,KAAK,KAAK,GAAI,SAAS,EAAE,OAAO,MAAM,OAAO,QAAQ,MAAM,OAAO,EAAG,IACvE,UAAU;AAGhB,WAAO,CAAC,YAAY,KAAK,KAAK,QAAQ,iBAAkB,MAAc;AAAA,EACxE,CAAC;AACH;AAEA,MAAM,UAAU,QAAQ;AACxB,MAAM,qBAAqB,QAAQ;AACnC,MAAM,WAAW,QAAQ;AACzB,MAAM,uBAAuB,QAAQ;AACrC,MAAM,gBAAgB,QAAQ;AAC9B,MAAM,aAAa,QAAQ;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
package/dist/jsx/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export*from"./Image";
|
|
1
|
+
export * from "./Image";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/jsx/index.js.map
CHANGED
package/dist/jsx/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export*from"./Image";
|
|
1
|
+
export * from "./Image";
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/dist/jsx/index.mjs.map
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/image",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.2",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.css"
|
|
6
6
|
],
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"clean:build": "tamagui-build clean:build"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@tamagui/core": "1.14.
|
|
26
|
+
"@tamagui/core": "1.14.2"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"react": "*",
|
|
30
30
|
"react-native": "*"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@tamagui/build": "1.14.
|
|
33
|
+
"@tamagui/build": "1.14.2",
|
|
34
34
|
"react": "^18.2.0",
|
|
35
35
|
"react-native": "^0.71.4"
|
|
36
36
|
},
|