@tamagui/scroll-view 3.0.0-beta.831.1 → 3.0.0-beta.889.1

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,6 +28,5 @@ const ScrollView = (0, import_web.styled)(import_WebScrollView.WebScrollView, {
28
28
  scrollEnabled: true
29
29
  }, {
30
30
  acceptsClassName: true,
31
- neverFlatten: true,
32
- accept: { contentContainerStyle: "style" }
31
+ neverFlatten: true
33
32
  });
@@ -1,8 +1,10 @@
1
1
  "use strict";
2
2
 
3
+ var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
6
8
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
9
  var __export = (target, all) => {
8
10
  for (var name in all) __defProp(target, name, {
@@ -19,16 +21,27 @@ var __copyProps = (to, from, except, desc) => {
19
21
  }
20
22
  return to;
21
23
  };
24
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
25
+ value: mod,
26
+ enumerable: true
27
+ }) : target, mod));
22
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
29
  var ScrollView_native_exports = {};
24
30
  __export(ScrollView_native_exports, { ScrollView: () => ScrollView });
25
31
  module.exports = __toCommonJS(ScrollView_native_exports);
32
+ var import_jsx_runtime = require("react/jsx-runtime");
26
33
  var import_web = require("@tamagui/web");
34
+ var import_react = __toESM(require("react"), 1);
27
35
  var import_react_native = require("react-native");
28
- var ScrollView = (0, import_web.styled)(import_react_native.ScrollView, {
36
+ var ScrollViewNative = /* @__PURE__ */ import_react.default.forwardRef(function(param, ref) {
37
+ var { contentContainerStyle, ...props } = param;
38
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native.ScrollView, {
39
+ ...props,
40
+ ref,
41
+ contentContainerStyle: (0, import_web.useStyle)(contentContainerStyle)
42
+ });
43
+ });
44
+ var ScrollView = (0, import_web.styled)(ScrollViewNative, {
29
45
  displayName: "ScrollView",
30
46
  scrollEnabled: true
31
- }, {
32
- neverFlatten: true,
33
- accept: { contentContainerStyle: "style" }
34
- });
47
+ }, { neverFlatten: true });
@@ -1,8 +1,10 @@
1
1
  "use strict";
2
2
 
3
+ var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
6
8
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
9
  var __export = (target, all) => {
8
10
  for (var name in all) __defProp(target, name, {
@@ -19,18 +21,29 @@ var __copyProps = (to, from, except, desc) => {
19
21
  }
20
22
  return to;
21
23
  };
24
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
25
+ value: mod,
26
+ enumerable: true
27
+ }) : target, mod));
22
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
29
  var ScrollView_native_exports = {};
24
30
  __export(ScrollView_native_exports, { ScrollView: () => ScrollView });
25
31
  module.exports = __toCommonJS(ScrollView_native_exports);
32
+ var import_jsx_runtime = require("react/jsx-runtime");
26
33
  var import_web = require("@tamagui/web");
34
+ var import_react = __toESM(require("react"), 1);
27
35
  var import_react_native = require("react-native");
28
- var ScrollView = (0, import_web.styled)(import_react_native.ScrollView, {
36
+ var ScrollViewNative = /* @__PURE__ */ import_react.default.forwardRef(function(param, ref) {
37
+ var { contentContainerStyle, ...props } = param;
38
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native.ScrollView, {
39
+ ...props,
40
+ ref,
41
+ contentContainerStyle: (0, import_web.useStyle)(contentContainerStyle)
42
+ });
43
+ });
44
+ var ScrollView = (0, import_web.styled)(ScrollViewNative, {
29
45
  displayName: "ScrollView",
30
46
  scrollEnabled: true
31
- }, {
32
- neverFlatten: true,
33
- accept: { contentContainerStyle: "style" }
34
- });
47
+ }, { neverFlatten: true });
35
48
 
36
49
  //# sourceMappingURL=ScrollView.native.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ScrollView.native.js","names":[],"sources":["cjs/ScrollView.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar ScrollView_native_exports = {};\n__export(ScrollView_native_exports, {\n ScrollView: () => ScrollView\n});\nmodule.exports = __toCommonJS(ScrollView_native_exports);\nvar import_web = require(\"@tamagui/web\");\nvar import_react_native = require(\"react-native\");\nvar ScrollView = (0, import_web.styled)(import_react_native.ScrollView, {\n displayName: \"ScrollView\",\n scrollEnabled: true\n}, {\n neverFlatten: true,\n accept: {\n contentContainerStyle: \"style\"\n }\n});\n//# sourceMappingURL=ScrollView.native.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,4BAA4B,CAAC;AACjC,SAAS,2BAA2B,EAClC,kBAAkB,WACpB,CAAC;AACD,OAAO,UAAU,aAAa,yBAAyB;AACvD,IAAI,aAAa,QAAQ,cAAc;AACvC,IAAI,sBAAsB,QAAQ,cAAc;AAChD,IAAI,cAAc,GAAG,WAAW,OAAM,CAAE,oBAAoB,YAAY;CACtE,aAAa;CACb,eAAe;AACjB,GAAG;CACD,cAAc;CACd,QAAQ,EACN,uBAAuB,QACzB;AACF,CAAC"}
1
+ {"version":3,"file":"ScrollView.native.js","names":[],"sources":["cjs/ScrollView.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar ScrollView_native_exports = {};\n__export(ScrollView_native_exports, {\n ScrollView: () => ScrollView\n});\nmodule.exports = __toCommonJS(ScrollView_native_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_web = require(\"@tamagui/web\");\nvar import_react = __toESM(require(\"react\"), 1);\nvar import_react_native = require(\"react-native\");\nvar ScrollViewNative = /* @__PURE__ */ import_react.default.forwardRef(function(param, ref) {\n var { contentContainerStyle, ...props } = param;\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native.ScrollView, {\n ...props,\n ref,\n contentContainerStyle: (0, import_web.useStyle)(contentContainerStyle)\n });\n});\nvar ScrollView = (0, import_web.styled)(ScrollViewNative, {\n displayName: \"ScrollView\",\n scrollEnabled: true\n}, {\n neverFlatten: true\n});\n//# sourceMappingURL=ScrollView.native.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,Y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B,GAAG,EACD,cAAc,KAChB,CAAC"}
@@ -6,8 +6,7 @@ const ScrollView = styled(WebScrollView, {
6
6
  scrollEnabled: true
7
7
  }, {
8
8
  acceptsClassName: true,
9
- neverFlatten: true,
10
- accept: { contentContainerStyle: "style" }
9
+ neverFlatten: true
11
10
  });
12
11
 
13
12
  export { ScrollView };
@@ -1 +1 @@
1
- {"version":3,"file":"ScrollView.js","names":[],"sources":["esm/ScrollView.js"],"sourcesContent":["import { styled } from \"@tamagui/web\";\nimport { WebScrollView } from \"./WebScrollView\";\nconst ScrollView = styled(\n WebScrollView,\n {\n displayName: \"ScrollView\",\n scrollEnabled: true\n },\n {\n acceptsClassName: true,\n neverFlatten: true,\n accept: {\n contentContainerStyle: \"style\"\n }\n }\n);\nexport {\n ScrollView\n};\n//# sourceMappingURL=ScrollView.js.map\n"],"mappings":";;;;AAEA,MAAM,aAAa,OACjB,eACA;CACE,aAAa;CACb,eAAe;AACjB,GACA;CACE,kBAAkB;CAClB,cAAc;CACd,QAAQ,EACN,uBAAuB,QACzB;AACF,CACF"}
1
+ {"version":3,"file":"ScrollView.js","names":[],"sources":["esm/ScrollView.js"],"sourcesContent":["import { styled } from \"@tamagui/web\";\nimport { WebScrollView } from \"./WebScrollView\";\nconst ScrollView = styled(\n WebScrollView,\n {\n displayName: \"ScrollView\",\n scrollEnabled: true\n },\n {\n acceptsClassName: true,\n neverFlatten: true\n }\n);\nexport {\n ScrollView\n};\n//# sourceMappingURL=ScrollView.js.map\n"],"mappings":";;;;AAEA,MAAM,aAAa,OACjB,eACA;CACE,aAAa;CACb,eAAe;AACjB,GACA;CACE,kBAAkB;CAClB,cAAc;AAChB,CACF"}
@@ -1,13 +1,20 @@
1
- import { styled } from "@tamagui/web";
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { styled, useStyle } from "@tamagui/web";
3
+ import React from "react";
2
4
  import { ScrollView as ScrollView$1 } from "react-native";
3
5
 
4
- var ScrollView = styled(ScrollView$1, {
6
+ var ScrollViewNative = /* @__PURE__ */ React.forwardRef(function(param, ref) {
7
+ var { contentContainerStyle, ...props } = param;
8
+ return /* @__PURE__ */ jsx(ScrollView$1, {
9
+ ...props,
10
+ ref,
11
+ contentContainerStyle: useStyle(contentContainerStyle)
12
+ });
13
+ });
14
+ var ScrollView = styled(ScrollViewNative, {
5
15
  displayName: "ScrollView",
6
16
  scrollEnabled: true
7
- }, {
8
- neverFlatten: true,
9
- accept: { contentContainerStyle: "style" }
10
- });
17
+ }, { neverFlatten: true });
11
18
 
12
19
  export { ScrollView };
13
20
  //# sourceMappingURL=ScrollView.native.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ScrollView.native.js","names":["ScrollViewNative"],"sources":["esm/ScrollView.native.js"],"sourcesContent":["import { styled } from \"@tamagui/web\";\nimport { ScrollView as ScrollViewNative } from \"react-native\";\nvar ScrollView = styled(ScrollViewNative, {\n displayName: \"ScrollView\",\n scrollEnabled: true\n}, {\n neverFlatten: true,\n accept: {\n contentContainerStyle: \"style\"\n }\n});\nexport {\n ScrollView\n};\n//# sourceMappingURL=ScrollView.native.js.map\n"],"mappings":";;;;AAEA,IAAI,aAAa,OAAOA,cAAkB;CACxC,aAAa;CACb,eAAe;AACjB,GAAG;CACD,cAAc;CACd,QAAQ,EACN,uBAAuB,QACzB;AACF,CAAC"}
1
+ {"version":3,"file":"ScrollView.native.js","names":["ReactNativeScrollView"],"sources":["esm/ScrollView.native.js"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { styled, useStyle } from \"@tamagui/web\";\nimport React from \"react\";\nimport { ScrollView as ReactNativeScrollView } from \"react-native\";\nvar ScrollViewNative = /* @__PURE__ */ React.forwardRef(function(param, ref) {\n var { contentContainerStyle, ...props } = param;\n return /* @__PURE__ */ _jsx(ReactNativeScrollView, {\n ...props,\n ref,\n contentContainerStyle: useStyle(contentContainerStyle)\n });\n});\nvar ScrollView = styled(ScrollViewNative, {\n displayName: \"ScrollView\",\n scrollEnabled: true\n}, {\n neverFlatten: true\n});\nexport {\n ScrollView\n};\n//# sourceMappingURL=ScrollView.native.js.map\n"],"mappings":";;;;;;AAIA,IAAI,mBAAmC,sBAAM,WAAW,SAAS,OAAO,KAAK;CAC3E,IAAI,EAAE,uBAAuB,GAAG,UAAU;CAC1C,OAAuB,oBAAKA,cAAuB;EACjD,GAAG;EACH;EACA,uBAAuB,SAAS,qBAAqB;CACvD,CAAC;AACH,CAAC;AACD,IAAI,aAAa,OAAO,kBAAkB;CACxC,aAAa;CACb,eAAe;AACjB,GAAG,EACD,cAAc,KAChB,CAAC"}
@@ -6,8 +6,7 @@ const ScrollView = styled(WebScrollView, {
6
6
  scrollEnabled: true
7
7
  }, {
8
8
  acceptsClassName: true,
9
- neverFlatten: true,
10
- accept: { contentContainerStyle: "style" }
9
+ neverFlatten: true
11
10
  });
12
11
 
13
12
  export { ScrollView };
@@ -1 +1 @@
1
- {"version":3,"file":"ScrollView.js","names":[],"sources":["jsx/ScrollView.js"],"sourcesContent":["import { styled } from \"@tamagui/web\";\nimport { WebScrollView } from \"./WebScrollView\";\nconst ScrollView = styled(\n WebScrollView,\n {\n displayName: \"ScrollView\",\n scrollEnabled: true\n },\n {\n acceptsClassName: true,\n neverFlatten: true,\n accept: {\n contentContainerStyle: \"style\"\n }\n }\n);\nexport {\n ScrollView\n};\n//# sourceMappingURL=ScrollView.js.map\n"],"mappings":";;;;AAEA,MAAM,aAAa,OACjB,eACA;CACE,aAAa;CACb,eAAe;AACjB,GACA;CACE,kBAAkB;CAClB,cAAc;CACd,QAAQ,EACN,uBAAuB,QACzB;AACF,CACF"}
1
+ {"version":3,"file":"ScrollView.js","names":[],"sources":["jsx/ScrollView.js"],"sourcesContent":["import { styled } from \"@tamagui/web\";\nimport { WebScrollView } from \"./WebScrollView\";\nconst ScrollView = styled(\n WebScrollView,\n {\n displayName: \"ScrollView\",\n scrollEnabled: true\n },\n {\n acceptsClassName: true,\n neverFlatten: true\n }\n);\nexport {\n ScrollView\n};\n//# sourceMappingURL=ScrollView.js.map\n"],"mappings":";;;;AAEA,MAAM,aAAa,OACjB,eACA;CACE,aAAa;CACb,eAAe;AACjB,GACA;CACE,kBAAkB;CAClB,cAAc;AAChB,CACF"}
@@ -1,8 +1,10 @@
1
1
  "use strict";
2
2
 
3
+ var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
6
8
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
9
  var __export = (target, all) => {
8
10
  for (var name in all) __defProp(target, name, {
@@ -19,16 +21,27 @@ var __copyProps = (to, from, except, desc) => {
19
21
  }
20
22
  return to;
21
23
  };
24
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
25
+ value: mod,
26
+ enumerable: true
27
+ }) : target, mod));
22
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
29
  var ScrollView_native_exports = {};
24
30
  __export(ScrollView_native_exports, { ScrollView: () => ScrollView });
25
31
  module.exports = __toCommonJS(ScrollView_native_exports);
32
+ var import_jsx_runtime = require("react/jsx-runtime");
26
33
  var import_web = require("@tamagui/web");
34
+ var import_react = __toESM(require("react"), 1);
27
35
  var import_react_native = require("react-native");
28
- var ScrollView = (0, import_web.styled)(import_react_native.ScrollView, {
36
+ var ScrollViewNative = /* @__PURE__ */ import_react.default.forwardRef(function(param, ref) {
37
+ var { contentContainerStyle, ...props } = param;
38
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native.ScrollView, {
39
+ ...props,
40
+ ref,
41
+ contentContainerStyle: (0, import_web.useStyle)(contentContainerStyle)
42
+ });
43
+ });
44
+ var ScrollView = (0, import_web.styled)(ScrollViewNative, {
29
45
  displayName: "ScrollView",
30
46
  scrollEnabled: true
31
- }, {
32
- neverFlatten: true,
33
- accept: { contentContainerStyle: "style" }
34
- });
47
+ }, { neverFlatten: true });
@@ -1,8 +1,10 @@
1
1
  "use strict";
2
2
 
3
+ var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
6
8
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
9
  var __export = (target, all) => {
8
10
  for (var name in all) __defProp(target, name, {
@@ -19,18 +21,29 @@ var __copyProps = (to, from, except, desc) => {
19
21
  }
20
22
  return to;
21
23
  };
24
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
25
+ value: mod,
26
+ enumerable: true
27
+ }) : target, mod));
22
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
29
  var ScrollView_native_exports = {};
24
30
  __export(ScrollView_native_exports, { ScrollView: () => ScrollView });
25
31
  module.exports = __toCommonJS(ScrollView_native_exports);
32
+ var import_jsx_runtime = require("react/jsx-runtime");
26
33
  var import_web = require("@tamagui/web");
34
+ var import_react = __toESM(require("react"), 1);
27
35
  var import_react_native = require("react-native");
28
- var ScrollView = (0, import_web.styled)(import_react_native.ScrollView, {
36
+ var ScrollViewNative = /* @__PURE__ */ import_react.default.forwardRef(function(param, ref) {
37
+ var { contentContainerStyle, ...props } = param;
38
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native.ScrollView, {
39
+ ...props,
40
+ ref,
41
+ contentContainerStyle: (0, import_web.useStyle)(contentContainerStyle)
42
+ });
43
+ });
44
+ var ScrollView = (0, import_web.styled)(ScrollViewNative, {
29
45
  displayName: "ScrollView",
30
46
  scrollEnabled: true
31
- }, {
32
- neverFlatten: true,
33
- accept: { contentContainerStyle: "style" }
34
- });
47
+ }, { neverFlatten: true });
35
48
 
36
49
  //# sourceMappingURL=ScrollView.native.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ScrollView.native.js","names":[],"sources":["jsx/ScrollView.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar ScrollView_native_exports = {};\n__export(ScrollView_native_exports, {\n ScrollView: () => ScrollView\n});\nmodule.exports = __toCommonJS(ScrollView_native_exports);\nvar import_web = require(\"@tamagui/web\");\nvar import_react_native = require(\"react-native\");\nvar ScrollView = (0, import_web.styled)(import_react_native.ScrollView, {\n displayName: \"ScrollView\",\n scrollEnabled: true\n}, {\n neverFlatten: true,\n accept: {\n contentContainerStyle: \"style\"\n }\n});\n//# sourceMappingURL=ScrollView.native.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,4BAA4B,CAAC;AACjC,SAAS,2BAA2B,EAClC,kBAAkB,WACpB,CAAC;AACD,OAAO,UAAU,aAAa,yBAAyB;AACvD,IAAI,aAAa,QAAQ,cAAc;AACvC,IAAI,sBAAsB,QAAQ,cAAc;AAChD,IAAI,cAAc,GAAG,WAAW,OAAM,CAAE,oBAAoB,YAAY;CACtE,aAAa;CACb,eAAe;AACjB,GAAG;CACD,cAAc;CACd,QAAQ,EACN,uBAAuB,QACzB;AACF,CAAC"}
1
+ {"version":3,"file":"ScrollView.native.js","names":[],"sources":["jsx/ScrollView.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar ScrollView_native_exports = {};\n__export(ScrollView_native_exports, {\n ScrollView: () => ScrollView\n});\nmodule.exports = __toCommonJS(ScrollView_native_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_web = require(\"@tamagui/web\");\nvar import_react = __toESM(require(\"react\"), 1);\nvar import_react_native = require(\"react-native\");\nvar ScrollViewNative = /* @__PURE__ */ import_react.default.forwardRef(function(param, ref) {\n var { contentContainerStyle, ...props } = param;\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native.ScrollView, {\n ...props,\n ref,\n contentContainerStyle: (0, import_web.useStyle)(contentContainerStyle)\n });\n});\nvar ScrollView = (0, import_web.styled)(ScrollViewNative, {\n displayName: \"ScrollView\",\n scrollEnabled: true\n}, {\n neverFlatten: true\n});\n//# sourceMappingURL=ScrollView.native.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAA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5
  "files": [
6
6
  "src",
@@ -43,10 +43,10 @@
43
43
  "clean:build": "tamagui-build clean:build"
44
44
  },
45
45
  "dependencies": {
46
- "@tamagui/web": "3.0.0-beta.831.1"
46
+ "@tamagui/web": "3.0.0-beta.889.1"
47
47
  },
48
48
  "devDependencies": {
49
- "@tamagui/build": "3.0.0-beta.831.1",
49
+ "@tamagui/build": "3.0.0-beta.889.1",
50
50
  "react": "19.2.3",
51
51
  "react-native": "0.86.2"
52
52
  },
@@ -1,6 +1,28 @@
1
- import type { GetProps, GetRef } from '@tamagui/web'
2
- import { styled } from '@tamagui/web'
3
- import { ScrollView as ScrollViewNative } from 'react-native'
1
+ import type { GetProps, GetRef, StylePiece } from '@tamagui/web'
2
+ import { styled, useStyle } from '@tamagui/web'
3
+ import React from 'react'
4
+ import {
5
+ ScrollView as ReactNativeScrollView,
6
+ type ScrollViewProps as ReactNativeScrollViewProps,
7
+ } from 'react-native'
8
+
9
+ type NativeScrollViewProps = Omit<ReactNativeScrollViewProps, 'contentContainerStyle'> & {
10
+ contentContainerStyle?: StylePiece
11
+ }
12
+
13
+ const ScrollViewNative = React.forwardRef<ReactNativeScrollView, NativeScrollViewProps>(
14
+ ({ contentContainerStyle, ...props }, ref) => (
15
+ <ReactNativeScrollView
16
+ {...props}
17
+ ref={ref}
18
+ contentContainerStyle={
19
+ useStyle(
20
+ contentContainerStyle
21
+ ) as ReactNativeScrollViewProps['contentContainerStyle']
22
+ }
23
+ />
24
+ )
25
+ )
4
26
 
5
27
  export const ScrollView = styled(
6
28
  ScrollViewNative,
@@ -10,12 +32,14 @@ export const ScrollView = styled(
10
32
  },
11
33
  {
12
34
  neverFlatten: true,
13
- accept: {
14
- contentContainerStyle: 'style',
15
- } as const,
16
35
  }
17
36
  )
18
37
 
19
38
  export type ScrollView = GetRef<typeof ScrollView>
20
39
 
21
- export type ScrollViewProps = GetProps<typeof ScrollView>
40
+ export type ScrollViewProps = Omit<
41
+ GetProps<typeof ScrollView>,
42
+ 'contentContainerStyle'
43
+ > & {
44
+ contentContainerStyle?: StylePiece
45
+ }
@@ -1,4 +1,4 @@
1
- import type { GetProps, GetRef } from '@tamagui/web'
1
+ import type { GetProps, GetRef, StylePiece } from '@tamagui/web'
2
2
  import { styled } from '@tamagui/web'
3
3
  import { WebScrollView } from './WebScrollView'
4
4
 
@@ -11,12 +11,14 @@ export const ScrollView = styled(
11
11
  {
12
12
  acceptsClassName: true,
13
13
  neverFlatten: true,
14
- accept: {
15
- contentContainerStyle: 'style',
16
- } as const,
17
14
  }
18
15
  )
19
16
 
20
17
  export type ScrollView = GetRef<typeof ScrollView>
21
18
 
22
- export type ScrollViewProps = GetProps<typeof ScrollView>
19
+ export type ScrollViewProps = Omit<
20
+ GetProps<typeof ScrollView>,
21
+ 'contentContainerStyle'
22
+ > & {
23
+ contentContainerStyle?: StylePiece
24
+ }
@@ -1,4 +1,4 @@
1
- import { View as TamaguiView } from '@tamagui/web'
1
+ import { View as TamaguiView, type StylePiece } from '@tamagui/web'
2
2
  import * as React from 'react'
3
3
 
4
4
  // loosely typed to map the react-native ScrollView prop surface onto a
@@ -24,6 +24,11 @@ export interface ScrollViewMethods {
24
24
 
25
25
  export type ScrollViewRef = HTMLElement & ScrollViewMethods
26
26
 
27
+ export type WebScrollViewProps = {
28
+ contentContainerStyle?: StylePiece
29
+ [key: string]: any
30
+ }
31
+
27
32
  function mergeRefs(...refs: any[]) {
28
33
  return (node: any) => {
29
34
  for (const ref of refs) {
@@ -127,7 +132,7 @@ const styles = {
127
132
  },
128
133
  } as const
129
134
 
130
- export const WebScrollView = React.forwardRef<ScrollViewRef, any>(
135
+ export const WebScrollView = React.forwardRef<ScrollViewRef, WebScrollViewProps>(
131
136
  (props, forwardedRef) => {
132
137
  const {
133
138
  children,
@@ -1,59 +1,20 @@
1
- import type { GetProps, GetRef } from '@tamagui/web';
2
- export declare const ScrollView: import("react").FunctionComponent<Omit<import("@tamagui/web").TamaguiComponentPropsBaseBase & Omit<any, "ref"> & import("react").RefAttributes<import("./WebScrollView").ScrollViewRef>, "contentContainerStyle" | keyof import("@tamagui/web").StackStyleBase> & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase & {
3
- readonly contentContainerStyle?: Partial<import("@tamagui/web").InferStyleProps<import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<import("./WebScrollView").ScrollViewRef>>, {
4
- acceptsClassName: true;
5
- neverFlatten: true;
6
- accept: {
7
- readonly contentContainerStyle: 'style';
8
- };
9
- }>> | undefined;
10
- }> & import("@tamagui/web").WithFlatVariantValues<{}> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase & {
11
- readonly contentContainerStyle?: Partial<import("@tamagui/web").InferStyleProps<import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<import("./WebScrollView").ScrollViewRef>>, {
12
- acceptsClassName: true;
13
- neverFlatten: true;
14
- accept: {
15
- readonly contentContainerStyle: 'style';
16
- };
17
- }>> | undefined;
18
- }>> & {
1
+ import type { GetProps, GetRef, StylePiece } from '@tamagui/web';
2
+ export declare const ScrollView: import("react").FunctionComponent<Omit<import("@tamagui/web").TamaguiComponentPropsBaseBase & Omit<import("./WebScrollView").WebScrollViewProps, "ref"> & import("react").RefAttributes<import("./WebScrollView").ScrollViewRef>, keyof import("@tamagui/web").StackStyleBase> & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & import("@tamagui/web").WithFlatVariantValues<{}> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>> & {
19
3
  ref?: import("react").Ref<import("./WebScrollView").ScrollViewRef> | undefined;
20
- }> & import("@tamagui/web").StaticComponentObject<import("@tamagui/web").TamaDefer, import("./WebScrollView").ScrollViewRef, import("@tamagui/web").TamaguiComponentPropsBaseBase & Omit<any, "ref"> & import("react").RefAttributes<import("./WebScrollView").ScrollViewRef>, import("@tamagui/web").StackStyleBase & {
21
- readonly contentContainerStyle?: Partial<import("@tamagui/web").InferStyleProps<import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<import("./WebScrollView").ScrollViewRef>>, {
22
- acceptsClassName: true;
23
- neverFlatten: true;
24
- accept: {
25
- readonly contentContainerStyle: 'style';
26
- };
27
- }>> | undefined;
28
- }, {}, {
4
+ }> & import("@tamagui/web").StaticComponentObject<import("@tamagui/web").TamaDefer, import("./WebScrollView").ScrollViewRef, import("@tamagui/web").TamaguiComponentPropsBaseBase & Omit<import("./WebScrollView").WebScrollViewProps, "ref"> & import("react").RefAttributes<import("./WebScrollView").ScrollViewRef>, import("@tamagui/web").StackStyleBase, {}, {
29
5
  acceptsClassName: true;
30
6
  neverFlatten: true;
31
- accept: {
32
- readonly contentContainerStyle: 'style';
33
- };
34
7
  }> & Omit<{
35
8
  acceptsClassName: true;
36
9
  neverFlatten: true;
37
- accept: {
38
- readonly contentContainerStyle: 'style';
39
- };
40
10
  }, "staticConfig"> & {
41
- __tama: [import("@tamagui/web").TamaDefer, import("./WebScrollView").ScrollViewRef, import("@tamagui/web").TamaguiComponentPropsBaseBase & Omit<any, "ref"> & import("react").RefAttributes<import("./WebScrollView").ScrollViewRef>, import("@tamagui/web").StackStyleBase & {
42
- readonly contentContainerStyle?: Partial<import("@tamagui/web").InferStyleProps<import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<import("./WebScrollView").ScrollViewRef>>, {
43
- acceptsClassName: true;
44
- neverFlatten: true;
45
- accept: {
46
- readonly contentContainerStyle: 'style';
47
- };
48
- }>> | undefined;
49
- }, {}, {
11
+ __tama: [import("@tamagui/web").TamaDefer, import("./WebScrollView").ScrollViewRef, import("@tamagui/web").TamaguiComponentPropsBaseBase & Omit<import("./WebScrollView").WebScrollViewProps, "ref"> & import("react").RefAttributes<import("./WebScrollView").ScrollViewRef>, import("@tamagui/web").StackStyleBase, {}, {
50
12
  acceptsClassName: true;
51
13
  neverFlatten: true;
52
- accept: {
53
- readonly contentContainerStyle: 'style';
54
- };
55
14
  }];
56
15
  };
57
16
  export type ScrollView = GetRef<typeof ScrollView>;
58
- export type ScrollViewProps = GetProps<typeof ScrollView>;
17
+ export type ScrollViewProps = Omit<GetProps<typeof ScrollView>, 'contentContainerStyle'> & {
18
+ contentContainerStyle?: StylePiece;
19
+ };
59
20
  //# sourceMappingURL=ScrollView.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ScrollView.d.ts","sourceRoot":"","sources":["../src/ScrollView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAIpD,eAAO,MAAM,UAAU;;;;;qBAUjB,qBAAqB,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;iBAA9B,qBAAqB,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;CAGnC,CAAA;AAED,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,UAAU,CAAC,CAAA;AAElD,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAA"}
1
+ {"version":3,"file":"ScrollView.d.ts","sourceRoot":"","sources":["../src/ScrollView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAIhE,eAAO,MAAM,UAAU;;;;;;;;;;;;;CAUtB,CAAA;AAED,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,UAAU,CAAC,CAAA;AAElD,MAAM,MAAM,eAAe,GAAG,IAAI,CAChC,QAAQ,CAAC,OAAO,UAAU,CAAC,EAC3B,uBAAuB,CACxB,GAAG;IACF,qBAAqB,CAAC,EAAE,UAAU,CAAA;CACnC,CAAA"}
@@ -1,53 +1,25 @@
1
- import type { GetProps, GetRef } from '@tamagui/web';
2
- import { ScrollView as ScrollViewNative } from 'react-native';
3
- export declare const ScrollView: import("react").FunctionComponent<Omit<import("@tamagui/web").TamaguiComponentPropsBaseBase & import("react-native").ScrollViewProps, "contentContainerStyle" | keyof import("@tamagui/web").StackStyleBase> & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase & {
4
- readonly contentContainerStyle?: Partial<import("@tamagui/web").InferStyleProps<typeof ScrollViewNative, {
5
- neverFlatten: true;
6
- accept: {
7
- readonly contentContainerStyle: 'style';
8
- };
9
- }>> | undefined;
10
- }> & import("@tamagui/web").WithFlatVariantValues<{}> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase & {
11
- readonly contentContainerStyle?: Partial<import("@tamagui/web").InferStyleProps<typeof ScrollViewNative, {
12
- neverFlatten: true;
13
- accept: {
14
- readonly contentContainerStyle: 'style';
15
- };
16
- }>> | undefined;
17
- }>> & {
18
- ref?: import("react").Ref<ScrollViewNative> | undefined;
19
- }> & import("@tamagui/web").StaticComponentObject<import("@tamagui/web").TamaDefer, ScrollViewNative, import("@tamagui/web").TamaguiComponentPropsBaseBase & import("react-native").ScrollViewProps, import("@tamagui/web").StackStyleBase & {
20
- readonly contentContainerStyle?: Partial<import("@tamagui/web").InferStyleProps<typeof ScrollViewNative, {
21
- neverFlatten: true;
22
- accept: {
23
- readonly contentContainerStyle: 'style';
24
- };
25
- }>> | undefined;
26
- }, {}, {
1
+ import type { GetProps, GetRef, StylePiece } from '@tamagui/web';
2
+ import React from 'react';
3
+ import { ScrollView as ReactNativeScrollView, type ScrollViewProps as ReactNativeScrollViewProps } from 'react-native';
4
+ export declare const ScrollView: React.FunctionComponent<Omit<import("@tamagui/web").TamaguiComponentPropsBaseBase & Omit<ReactNativeScrollViewProps, "contentContainerStyle"> & {
5
+ contentContainerStyle?: StylePiece;
6
+ } & React.RefAttributes<ReactNativeScrollView>, keyof import("@tamagui/web").StackStyleBase> & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & import("@tamagui/web").WithFlatVariantValues<{}> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>> & {
7
+ ref?: React.Ref<ReactNativeScrollView> | undefined;
8
+ }> & import("@tamagui/web").StaticComponentObject<import("@tamagui/web").TamaDefer, ReactNativeScrollView, import("@tamagui/web").TamaguiComponentPropsBaseBase & Omit<ReactNativeScrollViewProps, "contentContainerStyle"> & {
9
+ contentContainerStyle?: StylePiece;
10
+ } & React.RefAttributes<ReactNativeScrollView>, import("@tamagui/web").StackStyleBase, {}, {
27
11
  neverFlatten: true;
28
- accept: {
29
- readonly contentContainerStyle: 'style';
30
- };
31
12
  }> & Omit<{
32
13
  neverFlatten: true;
33
- accept: {
34
- readonly contentContainerStyle: 'style';
35
- };
36
14
  }, "staticConfig"> & {
37
- __tama: [import("@tamagui/web").TamaDefer, ScrollViewNative, import("@tamagui/web").TamaguiComponentPropsBaseBase & import("react-native").ScrollViewProps, import("@tamagui/web").StackStyleBase & {
38
- readonly contentContainerStyle?: Partial<import("@tamagui/web").InferStyleProps<typeof ScrollViewNative, {
39
- neverFlatten: true;
40
- accept: {
41
- readonly contentContainerStyle: 'style';
42
- };
43
- }>> | undefined;
44
- }, {}, {
15
+ __tama: [import("@tamagui/web").TamaDefer, ReactNativeScrollView, import("@tamagui/web").TamaguiComponentPropsBaseBase & Omit<ReactNativeScrollViewProps, "contentContainerStyle"> & {
16
+ contentContainerStyle?: StylePiece;
17
+ } & React.RefAttributes<ReactNativeScrollView>, import("@tamagui/web").StackStyleBase, {}, {
45
18
  neverFlatten: true;
46
- accept: {
47
- readonly contentContainerStyle: 'style';
48
- };
49
19
  }];
50
20
  };
51
21
  export type ScrollView = GetRef<typeof ScrollView>;
52
- export type ScrollViewProps = GetProps<typeof ScrollView>;
22
+ export type ScrollViewProps = Omit<GetProps<typeof ScrollView>, 'contentContainerStyle'> & {
23
+ contentContainerStyle?: StylePiece;
24
+ };
53
25
  //# sourceMappingURL=ScrollView.native.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ScrollView.native.d.ts","sourceRoot":"","sources":["../src/ScrollView.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAEpD,OAAO,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAE7D,eAAO,MAAM,UAAU;;;;qBASjB,qBAAqB,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;iBAA9B,qBAAqB,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;CAGnC,CAAA;AAED,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,UAAU,CAAC,CAAA;AAElD,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAA"}
1
+ {"version":3,"file":"ScrollView.native.d.ts","sourceRoot":"","sources":["../src/ScrollView.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEhE,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EACL,UAAU,IAAI,qBAAqB,EACnC,KAAK,eAAe,IAAI,0BAA0B,EACnD,MAAM,cAAc,CAAA;AAoBrB,eAAO,MAAM,UAAU;4BAjBG,UAAU;;;;;;;;;;;gCAAV,UAAU;;;;CA0BnC,CAAA;AAED,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,UAAU,CAAC,CAAA;AAElD,MAAM,MAAM,eAAe,GAAG,IAAI,CAChC,QAAQ,CAAC,OAAO,UAAU,CAAC,EAC3B,uBAAuB,CACxB,GAAG;IACF,qBAAqB,CAAC,EAAE,UAAU,CAAA;CACnC,CAAA"}
@@ -1,3 +1,4 @@
1
+ import { type StylePiece } from '@tamagui/web';
1
2
  import * as React from 'react';
2
3
  export interface ScrollViewMethods {
3
4
  getScrollResponder: () => any;
@@ -16,5 +17,9 @@ export interface ScrollViewMethods {
16
17
  flashScrollIndicators: () => void;
17
18
  }
18
19
  export type ScrollViewRef = HTMLElement & ScrollViewMethods;
19
- export declare const WebScrollView: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<ScrollViewRef>>;
20
+ export type WebScrollViewProps = {
21
+ contentContainerStyle?: StylePiece;
22
+ [key: string]: any;
23
+ };
24
+ export declare const WebScrollView: React.ForwardRefExoticComponent<Omit<WebScrollViewProps, "ref"> & React.RefAttributes<ScrollViewRef>>;
20
25
  //# sourceMappingURL=WebScrollView.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WebScrollView.d.ts","sourceRoot":"","sources":["../src/WebScrollView.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAY9B,MAAM,WAAW,iBAAiB;IAChC,kBAAkB,EAAE,MAAM,GAAG,CAAA;IAC7B,iBAAiB,EAAE,MAAM,WAAW,CAAA;IACpC,gBAAgB,EAAE,MAAM,WAAW,CAAA;IACnC,eAAe,EAAE,MAAM,WAAW,CAAA;IAClC,kBAAkB,EAAE,MAAM,WAAW,CAAA;IACrC,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAA;IAC5E,WAAW,EAAE,CAAC,OAAO,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAA;IACvD,qBAAqB,EAAE,MAAM,IAAI,CAAA;CAClC;AAED,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG,iBAAiB,CAAA;AAyG3D,eAAO,MAAM,aAAa,wFAmMzB,CAAA"}
1
+ {"version":3,"file":"WebScrollView.d.ts","sourceRoot":"","sources":["../src/WebScrollView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,UAAU,EAAE,M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