@tamagui/native 3.0.0-beta.1455.1 → 3.0.0-beta.1464.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.
Files changed (41) hide show
  1. package/dist/cjs/index.cjs +0 -2
  2. package/dist/cjs/index.native.cjs +0 -2
  3. package/dist/cjs/index.native.js +0 -2
  4. package/dist/cjs/index.native.js.map +1 -1
  5. package/dist/esm/index.js +1 -2
  6. package/dist/esm/index.mjs +1 -2
  7. package/dist/esm/index.native.js +1 -2
  8. package/package.json +4 -23
  9. package/src/index.ts +0 -7
  10. package/src/types.ts +0 -5
  11. package/types/index.d.ts +1 -5
  12. package/types/index.d.ts.map +2 -2
  13. package/types/types.d.ts +0 -4
  14. package/types/types.d.ts.map +2 -2
  15. package/dist/cjs/linearGradientState.cjs +0 -41
  16. package/dist/cjs/linearGradientState.native.cjs +0 -43
  17. package/dist/cjs/linearGradientState.native.js +0 -45
  18. package/dist/cjs/linearGradientState.native.js.map +0 -1
  19. package/dist/cjs/setup-expo-linear-gradient.cjs +0 -16
  20. package/dist/cjs/setup-expo-linear-gradient.native.cjs +0 -18
  21. package/dist/cjs/setup-expo-linear-gradient.native.js +0 -20
  22. package/dist/cjs/setup-expo-linear-gradient.native.js.map +0 -1
  23. package/dist/esm/linearGradientState.mjs +0 -22
  24. package/dist/esm/linearGradientState.mjs.map +0 -1
  25. package/dist/esm/linearGradientState.native.js +0 -22
  26. package/dist/esm/linearGradientState.native.js.map +0 -1
  27. package/dist/esm/setup-expo-linear-gradient.mjs +0 -19
  28. package/dist/esm/setup-expo-linear-gradient.mjs.map +0 -1
  29. package/dist/esm/setup-expo-linear-gradient.native.js +0 -19
  30. package/dist/esm/setup-expo-linear-gradient.native.js.map +0 -1
  31. package/setup-expo-linear-gradient/index.cjs +0 -2
  32. package/setup-expo-linear-gradient/index.js +0 -2
  33. package/setup-expo-linear-gradient/index.native.cjs +0 -2
  34. package/setup-expo-linear-gradient/index.native.js +0 -2
  35. package/setup-expo-linear-gradient.cjs +0 -1
  36. package/src/linearGradientState.ts +0 -27
  37. package/src/setup-expo-linear-gradient.ts +0 -36
  38. package/types/linearGradientState.d.ts +0 -9
  39. package/types/linearGradientState.d.ts.map +0 -11
  40. package/types/setup-expo-linear-gradient.d.ts +0 -3
  41. package/types/setup-expo-linear-gradient.d.ts.map +0 -11
@@ -28,7 +28,6 @@ __export(index_exports, {
28
28
  getBurnt: () => import_burntState.getBurnt,
29
29
  getGestureHandler: () => import_gestureState.getGestureHandler,
30
30
  getKeyboardControllerState: () => import_keyboardControllerState.getKeyboardControllerState,
31
- getLinearGradient: () => import_linearGradientState.getLinearGradient,
32
31
  getNativeMenuAdapter: () => import_nativeMenuState.getNativeMenuAdapter,
33
32
  getPortal: () => import_portalState.getPortal,
34
33
  getSafeArea: () => import_safeAreaState.getSafeArea,
@@ -47,7 +46,6 @@ var import_gestureState = require("./gestureState.cjs");
47
46
  var import_gestureState2 = require("./gestureState.cjs");
48
47
  var import_workletsState = require("./workletsState.cjs");
49
48
  var import_safeAreaState = require("./safeAreaState.cjs");
50
- var import_linearGradientState = require("./linearGradientState.cjs");
51
49
  var import_keyboardControllerState = require("./keyboardControllerState.cjs");
52
50
  var import_nativeMenuState = require("./nativeMenuState.cjs");
53
51
  var import_expoUIMenuAdapter = require("./expoUIMenuAdapter.cjs");
@@ -30,7 +30,6 @@ __export(index_exports, {
30
30
  getBurnt: () => import_burntState.getBurnt,
31
31
  getGestureHandler: () => import_gestureState.getGestureHandler,
32
32
  getKeyboardControllerState: () => import_keyboardControllerState.getKeyboardControllerState,
33
- getLinearGradient: () => import_linearGradientState.getLinearGradient,
34
33
  getNativeMenuAdapter: () => import_nativeMenuState.getNativeMenuAdapter,
35
34
  getPortal: () => import_portalState.getPortal,
36
35
  getSafeArea: () => import_safeAreaState.getSafeArea,
@@ -49,7 +48,6 @@ var import_gestureState = require("./gestureState.native.js");
49
48
  var import_gestureState2 = require("./gestureState.native.js");
50
49
  var import_workletsState = require("./workletsState.native.js");
51
50
  var import_safeAreaState = require("./safeAreaState.native.js");
52
- var import_linearGradientState = require("./linearGradientState.native.js");
53
51
  var import_keyboardControllerState = require("./keyboardControllerState.native.js");
54
52
  var import_nativeMenuState = require("./nativeMenuState.native.js");
55
53
  var import_expoUIMenuAdapter = require("./expoUIMenuAdapter.native.js");
@@ -30,7 +30,6 @@ __export(index_exports, {
30
30
  getBurnt: () => import_burntState.getBurnt,
31
31
  getGestureHandler: () => import_gestureState.getGestureHandler,
32
32
  getKeyboardControllerState: () => import_keyboardControllerState.getKeyboardControllerState,
33
- getLinearGradient: () => import_linearGradientState.getLinearGradient,
34
33
  getNativeMenuAdapter: () => import_nativeMenuState.getNativeMenuAdapter,
35
34
  getPortal: () => import_portalState.getPortal,
36
35
  getSafeArea: () => import_safeAreaState.getSafeArea,
@@ -49,7 +48,6 @@ var import_gestureState = require("./gestureState.native.js");
49
48
  var import_gestureState2 = require("./gestureState.native.js");
50
49
  var import_workletsState = require("./workletsState.native.js");
51
50
  var import_safeAreaState = require("./safeAreaState.native.js");
52
- var import_linearGradientState = require("./linearGradientState.native.js");
53
51
  var import_keyboardControllerState = require("./keyboardControllerState.native.js");
54
52
  var import_nativeMenuState = require("./nativeMenuState.native.js");
55
53
  var import_expoUIMenuAdapter = require("./expoUIMenuAdapter.native.js");
@@ -1 +1 @@
1
- {"version":3,"file":"index.native.js","names":[],"sources":["cjs/index.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 index_exports = {};\n__export(index_exports, {\n NativeMenuContext: () => import_nativeMenuContext.NativeMenuContext,\n NativePortal: () => import_components.NativePortal,\n NativePortalHost: () => import_components.NativePortalHost,\n NativePortalProvider: () => import_components.NativePortalProvider,\n createExpoUIMenuAdapter: () => import_expoUIMenuAdapter.createExpoUIMenuAdapter,\n getBurnt: () => import_burntState.getBurnt,\n getGestureHandler: () => import_gestureState.getGestureHandler,\n getKeyboardControllerState: () => import_keyboardControllerState.getKeyboardControllerState,\n getLinearGradient: () => import_linearGradientState.getLinearGradient,\n getNativeMenuAdapter: () => import_nativeMenuState.getNativeMenuAdapter,\n getPortal: () => import_portalState.getPortal,\n getSafeArea: () => import_safeAreaState.getSafeArea,\n getWorklets: () => import_workletsState.getWorklets,\n hasSafeAreaSetup: () => import_safeAreaState.hasSafeAreaSetup,\n isKeyboardControllerEnabled: () => import_keyboardControllerState.isKeyboardControllerEnabled,\n registerNativeMenuAdapter: () => import_nativeMenuState.registerNativeMenuAdapter,\n setKeyboardControllerState: () => import_keyboardControllerState.setKeyboardControllerState,\n unstable_claimExternalPressOwnership: () => import_gestureState2.claimExternalPressOwnership,\n unstable_hasExternalPressOwnership: () => import_gestureState2.hasExternalPressOwnership,\n unstable_releaseExternalPressOwnership: () => import_gestureState2.releaseExternalPressOwnership\n});\nmodule.exports = __toCommonJS(index_exports);\nvar import_portalState = require(\"./portalState\");\nvar import_gestureState = require(\"./gestureState\");\nvar import_gestureState2 = require(\"./gestureState\");\nvar import_workletsState = require(\"./workletsState\");\nvar import_safeAreaState = require(\"./safeAreaState\");\nvar import_linearGradientState = require(\"./linearGradientState\");\nvar import_keyboardControllerState = require(\"./keyboardControllerState\");\nvar import_nativeMenuState = require(\"./nativeMenuState\");\nvar import_expoUIMenuAdapter = require(\"./expoUIMenuAdapter\");\nvar import_nativeMenuContext = require(\"./nativeMenuContext\");\nvar import_burntState = require(\"./burntState\");\nvar import_components = require(\"./components\");\n//# sourceMappingURL=index.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,gBAAgB,CAAC;AACrB,SAAS,eAAe;CACtB,yBAAyB,yBAAyB;CAClD,oBAAoB,kBAAkB;CACtC,wBAAwB,kBAAkB;CAC1C,4BAA4B,kBAAkB;CAC9C,+BAA+B,yBAAyB;CACxD,gBAAgB,kBAAkB;CAClC,yBAAyB,oBAAoB;CAC7C,kCAAkC,+BAA+B;CACjE,yBAAyB,2BAA2B;CACpD,4BAA4B,uBAAuB;CACnD,iBAAiB,mBAAmB;CACpC,mBAAmB,qBAAqB;CACxC,mBAAmB,qBAAqB;CACxC,wBAAwB,qBAAqB;CAC7C,mCAAmC,+BAA+B;CAClE,iCAAiC,uBAAuB;CACxD,kCAAkC,+BAA+B;CACjE,4CAA4C,qBAAqB;CACjE,0CAA0C,qBAAqB;CAC/D,8CAA8C,qBAAqB;AACrE,CAAC;AACD,OAAO,UAAU,aAAa,aAAa;AAC3C,IAAI,qBAAqB,QAAQ,yBAAe;AAChD,IAAI,sBAAsB,QAAQ,0BAAgB;AAClD,IAAI,uBAAuB,QAAQ,0BAAgB;AACnD,IAAI,uBAAuB,QAAQ,2BAAiB;AACpD,IAAI,uBAAuB,QAAQ,2BAAiB;AACpD,IAAI,6BAA6B,QAAQ,iCAAuB;AAChE,IAAI,iCAAiC,QAAQ,qCAA2B;AACxE,IAAI,yBAAyB,QAAQ,6BAAmB;AACxD,IAAI,2BAA2B,QAAQ,+BAAqB;AAC5D,IAAI,2BAA2B,QAAQ,+BAAqB;AAC5D,IAAI,oBAAoB,QAAQ,wBAAc;AAC9C,IAAI,oBAAoB,QAAQ,wBAAc"}
1
+ {"version":3,"file":"index.native.js","names":[],"sources":["cjs/index.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 index_exports = {};\n__export(index_exports, {\n NativeMenuContext: () => import_nativeMenuContext.NativeMenuContext,\n NativePortal: () => import_components.NativePortal,\n NativePortalHost: () => import_components.NativePortalHost,\n NativePortalProvider: () => import_components.NativePortalProvider,\n createExpoUIMenuAdapter: () => import_expoUIMenuAdapter.createExpoUIMenuAdapter,\n getBurnt: () => import_burntState.getBurnt,\n getGestureHandler: () => import_gestureState.getGestureHandler,\n getKeyboardControllerState: () => import_keyboardControllerState.getKeyboardControllerState,\n getNativeMenuAdapter: () => import_nativeMenuState.getNativeMenuAdapter,\n getPortal: () => import_portalState.getPortal,\n getSafeArea: () => import_safeAreaState.getSafeArea,\n getWorklets: () => import_workletsState.getWorklets,\n hasSafeAreaSetup: () => import_safeAreaState.hasSafeAreaSetup,\n isKeyboardControllerEnabled: () => import_keyboardControllerState.isKeyboardControllerEnabled,\n registerNativeMenuAdapter: () => import_nativeMenuState.registerNativeMenuAdapter,\n setKeyboardControllerState: () => import_keyboardControllerState.setKeyboardControllerState,\n unstable_claimExternalPressOwnership: () => import_gestureState2.claimExternalPressOwnership,\n unstable_hasExternalPressOwnership: () => import_gestureState2.hasExternalPressOwnership,\n unstable_releaseExternalPressOwnership: () => import_gestureState2.releaseExternalPressOwnership\n});\nmodule.exports = __toCommonJS(index_exports);\nvar import_portalState = require(\"./portalState\");\nvar import_gestureState = require(\"./gestureState\");\nvar import_gestureState2 = require(\"./gestureState\");\nvar import_workletsState = require(\"./workletsState\");\nvar import_safeAreaState = require(\"./safeAreaState\");\nvar import_keyboardControllerState = require(\"./keyboardControllerState\");\nvar import_nativeMenuState = require(\"./nativeMenuState\");\nvar import_expoUIMenuAdapter = require(\"./expoUIMenuAdapter\");\nvar import_nativeMenuContext = require(\"./nativeMenuContext\");\nvar import_burntState = require(\"./burntState\");\nvar import_components = require(\"./components\");\n//# sourceMappingURL=index.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,gBAAgB,CAAC;AACrB,SAAS,eAAe;CACtB,yBAAyB,yBAAyB;CAClD,oBAAoB,kBAAkB;CACtC,wBAAwB,kBAAkB;CAC1C,4BAA4B,kBAAkB;CAC9C,+BAA+B,yBAAyB;CACxD,gBAAgB,kBAAkB;CAClC,yBAAyB,oBAAoB;CAC7C,kCAAkC,+BAA+B;CACjE,4BAA4B,uBAAuB;CACnD,iBAAiB,mBAAmB;CACpC,mBAAmB,qBAAqB;CACxC,mBAAmB,qBAAqB;CACxC,wBAAwB,qBAAqB;CAC7C,mCAAmC,+BAA+B;CAClE,iCAAiC,uBAAuB;CACxD,kCAAkC,+BAA+B;CACjE,4CAA4C,qBAAqB;CACjE,0CAA0C,qBAAqB;CAC/D,8CAA8C,qBAAqB;AACrE,CAAC;AACD,OAAO,UAAU,aAAa,aAAa;AAC3C,IAAI,qBAAqB,QAAQ,yBAAe;AAChD,IAAI,sBAAsB,QAAQ,0BAAgB;AAClD,IAAI,uBAAuB,QAAQ,0BAAgB;AACnD,IAAI,uBAAuB,QAAQ,2BAAiB;AACpD,IAAI,uBAAuB,QAAQ,2BAAiB;AACpD,IAAI,iCAAiC,QAAQ,qCAA2B;AACxE,IAAI,yBAAyB,QAAQ,6BAAmB;AACxD,IAAI,2BAA2B,QAAQ,+BAAqB;AAC5D,IAAI,2BAA2B,QAAQ,+BAAqB;AAC5D,IAAI,oBAAoB,QAAQ,wBAAc;AAC9C,IAAI,oBAAoB,QAAQ,wBAAc"}
package/dist/esm/index.js CHANGED
@@ -2,7 +2,6 @@ import { getPortal } from "./portalState.mjs";
2
2
  import { claimExternalPressOwnership, getGestureHandler, hasExternalPressOwnership, releaseExternalPressOwnership } from "./gestureState.mjs";
3
3
  import { getWorklets } from "./workletsState.mjs";
4
4
  import { getSafeArea, hasSafeAreaSetup } from "./safeAreaState.mjs";
5
- import { getLinearGradient } from "./linearGradientState.mjs";
6
5
  import { getKeyboardControllerState, isKeyboardControllerEnabled, setKeyboardControllerState } from "./keyboardControllerState.mjs";
7
6
  import { getNativeMenuAdapter, registerNativeMenuAdapter } from "./nativeMenuState.mjs";
8
7
  import { createExpoUIMenuAdapter } from "./expoUIMenuAdapter.mjs";
@@ -10,4 +9,4 @@ import { NativeMenuContext } from "./nativeMenuContext.mjs";
10
9
  import { getBurnt } from "./burntState.mjs";
11
10
  import { NativePortal, NativePortalHost, NativePortalProvider } from "./components.mjs";
12
11
 
13
- export { NativeMenuContext, NativePortal, NativePortalHost, NativePortalProvider, createExpoUIMenuAdapter, getBurnt, getGestureHandler, getKeyboardControllerState, getLinearGradient, getNativeMenuAdapter, getPortal, getSafeArea, getWorklets, hasSafeAreaSetup, isKeyboardControllerEnabled, registerNativeMenuAdapter, setKeyboardControllerState, claimExternalPressOwnership as unstable_claimExternalPressOwnership, hasExternalPressOwnership as unstable_hasExternalPressOwnership, releaseExternalPressOwnership as unstable_releaseExternalPressOwnership };
12
+ export { NativeMenuContext, NativePortal, NativePortalHost, NativePortalProvider, createExpoUIMenuAdapter, getBurnt, getGestureHandler, getKeyboardControllerState, getNativeMenuAdapter, getPortal, getSafeArea, getWorklets, hasSafeAreaSetup, isKeyboardControllerEnabled, registerNativeMenuAdapter, setKeyboardControllerState, claimExternalPressOwnership as unstable_claimExternalPressOwnership, hasExternalPressOwnership as unstable_hasExternalPressOwnership, releaseExternalPressOwnership as unstable_releaseExternalPressOwnership };
@@ -2,7 +2,6 @@ import { getPortal } from "./portalState.mjs";
2
2
  import { claimExternalPressOwnership, getGestureHandler, hasExternalPressOwnership, releaseExternalPressOwnership } from "./gestureState.mjs";
3
3
  import { getWorklets } from "./workletsState.mjs";
4
4
  import { getSafeArea, hasSafeAreaSetup } from "./safeAreaState.mjs";
5
- import { getLinearGradient } from "./linearGradientState.mjs";
6
5
  import { getKeyboardControllerState, isKeyboardControllerEnabled, setKeyboardControllerState } from "./keyboardControllerState.mjs";
7
6
  import { getNativeMenuAdapter, registerNativeMenuAdapter } from "./nativeMenuState.mjs";
8
7
  import { createExpoUIMenuAdapter } from "./expoUIMenuAdapter.mjs";
@@ -10,4 +9,4 @@ import { NativeMenuContext } from "./nativeMenuContext.mjs";
10
9
  import { getBurnt } from "./burntState.mjs";
11
10
  import { NativePortal, NativePortalHost, NativePortalProvider } from "./components.mjs";
12
11
 
13
- export { NativeMenuContext, NativePortal, NativePortalHost, NativePortalProvider, createExpoUIMenuAdapter, getBurnt, getGestureHandler, getKeyboardControllerState, getLinearGradient, getNativeMenuAdapter, getPortal, getSafeArea, getWorklets, hasSafeAreaSetup, isKeyboardControllerEnabled, registerNativeMenuAdapter, setKeyboardControllerState, claimExternalPressOwnership as unstable_claimExternalPressOwnership, hasExternalPressOwnership as unstable_hasExternalPressOwnership, releaseExternalPressOwnership as unstable_releaseExternalPressOwnership };
12
+ export { NativeMenuContext, NativePortal, NativePortalHost, NativePortalProvider, createExpoUIMenuAdapter, getBurnt, getGestureHandler, getKeyboardControllerState, getNativeMenuAdapter, getPortal, getSafeArea, getWorklets, hasSafeAreaSetup, isKeyboardControllerEnabled, registerNativeMenuAdapter, setKeyboardControllerState, claimExternalPressOwnership as unstable_claimExternalPressOwnership, hasExternalPressOwnership as unstable_hasExternalPressOwnership, releaseExternalPressOwnership as unstable_releaseExternalPressOwnership };
@@ -2,7 +2,6 @@ import { getPortal } from "./portalState.native.js";
2
2
  import { claimExternalPressOwnership, getGestureHandler, hasExternalPressOwnership, releaseExternalPressOwnership } from "./gestureState.native.js";
3
3
  import { getWorklets } from "./workletsState.native.js";
4
4
  import { getSafeArea, hasSafeAreaSetup } from "./safeAreaState.native.js";
5
- import { getLinearGradient } from "./linearGradientState.native.js";
6
5
  import { getKeyboardControllerState, isKeyboardControllerEnabled, setKeyboardControllerState } from "./keyboardControllerState.native.js";
7
6
  import { getNativeMenuAdapter, registerNativeMenuAdapter } from "./nativeMenuState.native.js";
8
7
  import { createExpoUIMenuAdapter } from "./expoUIMenuAdapter.native.js";
@@ -10,4 +9,4 @@ import { NativeMenuContext } from "./nativeMenuContext.native.js";
10
9
  import { getBurnt } from "./burntState.native.js";
11
10
  import { NativePortal, NativePortalHost, NativePortalProvider } from "./components.native.js";
12
11
 
13
- export { NativeMenuContext, NativePortal, NativePortalHost, NativePortalProvider, createExpoUIMenuAdapter, getBurnt, getGestureHandler, getKeyboardControllerState, getLinearGradient, getNativeMenuAdapter, getPortal, getSafeArea, getWorklets, hasSafeAreaSetup, isKeyboardControllerEnabled, registerNativeMenuAdapter, setKeyboardControllerState, claimExternalPressOwnership as unstable_claimExternalPressOwnership, hasExternalPressOwnership as unstable_hasExternalPressOwnership, releaseExternalPressOwnership as unstable_releaseExternalPressOwnership };
12
+ export { NativeMenuContext, NativePortal, NativePortalHost, NativePortalProvider, createExpoUIMenuAdapter, getBurnt, getGestureHandler, getKeyboardControllerState, getNativeMenuAdapter, getPortal, getSafeArea, getWorklets, hasSafeAreaSetup, isKeyboardControllerEnabled, registerNativeMenuAdapter, setKeyboardControllerState, claimExternalPressOwnership as unstable_claimExternalPressOwnership, hasExternalPressOwnership as unstable_hasExternalPressOwnership, releaseExternalPressOwnership as unstable_releaseExternalPressOwnership };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/native",
3
- "version": "3.0.0-beta.1455.1",
3
+ "version": "3.0.0-beta.1464.1",
4
4
  "license": "MIT",
5
5
  "description": "Native setup modules for Tamagui - portals, gesture handler, worklets, and more",
6
6
  "type": "module",
@@ -16,8 +16,6 @@
16
16
  "gesture-handler.cjs",
17
17
  "setup-burnt",
18
18
  "setup-burnt.cjs",
19
- "setup-expo-linear-gradient",
20
- "setup-expo-linear-gradient.cjs",
21
19
  "setup-expo-ui-menu",
22
20
  "setup-expo-ui-menu.cjs",
23
21
  "setup-gesture-handler",
@@ -53,9 +51,6 @@
53
51
  "setup-safe-area": [
54
52
  "./types/setup-safe-area.d.ts"
55
53
  ],
56
- "setup-expo-linear-gradient": [
57
- "./types/setup-expo-linear-gradient.d.ts"
58
- ],
59
54
  "setup-keyboard-controller": [
60
55
  "./types/setup-keyboard-controller.d.ts"
61
56
  ],
@@ -126,15 +121,6 @@
126
121
  "require": "./dist/cjs/setup-safe-area.cjs",
127
122
  "default": "./dist/esm/setup-safe-area.mjs"
128
123
  },
129
- "./setup-expo-linear-gradient": {
130
- "types": "./types/setup-expo-linear-gradient.d.ts",
131
- "react-native": "./dist/esm/setup-expo-linear-gradient.native.js",
132
- "browser": "./dist/esm/setup-expo-linear-gradient.mjs",
133
- "module": "./dist/esm/setup-expo-linear-gradient.mjs",
134
- "import": "./dist/esm/setup-expo-linear-gradient.mjs",
135
- "require": "./dist/cjs/setup-expo-linear-gradient.cjs",
136
- "default": "./dist/esm/setup-expo-linear-gradient.mjs"
137
- },
138
124
  "./setup-keyboard-controller": {
139
125
  "types": "./types/setup-keyboard-controller.d.ts",
140
126
  "react-native": "./dist/esm/setup-keyboard-controller.native.js",
@@ -182,14 +168,13 @@
182
168
  "clean:build": "tamagui-build clean:build"
183
169
  },
184
170
  "dependencies": {
185
- "@tamagui/compose-refs": "3.0.0-beta.1455.1",
186
- "@tamagui/react-native-types": "3.0.0-beta.1455.1"
171
+ "@tamagui/compose-refs": "3.0.0-beta.1464.1",
172
+ "@tamagui/react-native-types": "3.0.0-beta.1464.1"
187
173
  },
188
174
  "devDependencies": {
189
175
  "@expo/ui": "~57.0.12",
190
- "@tamagui/build": "3.0.0-beta.1455.1",
176
+ "@tamagui/build": "3.0.0-beta.1464.1",
191
177
  "burnt": "^0.13.0",
192
- "expo-linear-gradient": "~57.0.1",
193
178
  "react": "19.2.3",
194
179
  "react-native": "0.86.2",
195
180
  "react-native-gesture-handler": "~2.32.0",
@@ -203,7 +188,6 @@
203
188
  "peerDependencies": {
204
189
  "@expo/ui": "*",
205
190
  "burnt": "*",
206
- "expo-linear-gradient": "*",
207
191
  "react": "*",
208
192
  "react-native": "*",
209
193
  "react-native-gesture-handler": "*",
@@ -227,9 +211,6 @@
227
211
  "react-native-web": {
228
212
  "optional": true
229
213
  },
230
- "expo-linear-gradient": {
231
- "optional": true
232
- },
233
214
  "react-native-gesture-handler": {
234
215
  "optional": true
235
216
  },
package/src/index.ts CHANGED
@@ -10,12 +10,10 @@
10
10
  * import '@tamagui/native/setup-gesture-handler'
11
11
  * import '@tamagui/native/setup-worklets'
12
12
  * import '@tamagui/native/setup-safe-area'
13
- * import '@tamagui/native/expo-linear-gradient'
14
13
  * import '@tamagui/native/setup-keyboard-controller'
15
14
  *
16
15
  * // Then use Tamagui components normally
17
16
  * // Sheet will automatically use native gestures when available
18
- * // LinearGradient will use expo-linear-gradient when installed
19
17
  * ```
20
18
  */
21
19
 
@@ -28,7 +26,6 @@ export type {
28
26
  SafeAreaInsets,
29
27
  SafeAreaFrame,
30
28
  SafeAreaMetrics,
31
- LinearGradientState,
32
29
  BurntState,
33
30
  NativePortalProps,
34
31
  NativePortalHostProps,
@@ -64,10 +61,6 @@ export type { WorkletsAccessor } from './workletsState'
64
61
  export { getSafeArea, hasSafeAreaSetup } from './safeAreaState'
65
62
  export type { SafeAreaAccessor } from './safeAreaState'
66
63
 
67
- // linear gradient
68
- export { getLinearGradient } from './linearGradientState'
69
- export type { LinearGradientAccessor } from './linearGradientState'
70
-
71
64
  // keyboard controller state exports (safe - no side effects)
72
65
  export {
73
66
  isKeyboardControllerEnabled,
package/src/types.ts CHANGED
@@ -65,11 +65,6 @@ export type NativePortalProviderProps = {
65
65
  children: ReactNode
66
66
  }
67
67
 
68
- export interface LinearGradientState {
69
- enabled: boolean
70
- Component: any
71
- }
72
-
73
68
  export interface BurntState {
74
69
  enabled: boolean
75
70
  toast: ((options: any) => void) | null
package/types/index.d.ts CHANGED
@@ -10,15 +10,13 @@
10
10
  * import '@tamagui/native/setup-gesture-handler'
11
11
  * import '@tamagui/native/setup-worklets'
12
12
  * import '@tamagui/native/setup-safe-area'
13
- * import '@tamagui/native/expo-linear-gradient'
14
13
  * import '@tamagui/native/setup-keyboard-controller'
15
14
  *
16
15
  * // Then use Tamagui components normally
17
16
  * // Sheet will automatically use native gestures when available
18
- * // LinearGradient will use expo-linear-gradient when installed
19
17
  * ```
20
18
  */
21
- export type { NativePortalState, GestureState, WorkletsState, SafeAreaState, SafeAreaInsets, SafeAreaFrame, SafeAreaMetrics, LinearGradientState, BurntState, NativePortalProps, NativePortalHostProps, NativePortalProviderProps } from "./types";
19
+ export type { NativePortalState, GestureState, WorkletsState, SafeAreaState, SafeAreaInsets, SafeAreaFrame, SafeAreaMetrics, BurntState, NativePortalProps, NativePortalHostProps, NativePortalProviderProps } from "./types";
22
20
  export type { NativeMenuAdapter, NativeMenuModule } from "./nativeMenuState";
23
21
  export { getPortal } from "./portalState";
24
22
  export type { PortalAccessor } from "./portalState";
@@ -30,8 +28,6 @@ export { getWorklets } from "./workletsState";
30
28
  export type { WorkletsAccessor } from "./workletsState";
31
29
  export { getSafeArea, hasSafeAreaSetup } from "./safeAreaState";
32
30
  export type { SafeAreaAccessor } from "./safeAreaState";
33
- export { getLinearGradient } from "./linearGradientState";
34
- export type { LinearGradientAccessor } from "./linearGradientState";
35
31
  export { isKeyboardControllerEnabled, getKeyboardControllerState, setKeyboardControllerState } from "./keyboardControllerState";
36
32
  export type { KeyboardControllerState } from "./keyboardControllerState";
37
33
  export { getNativeMenuAdapter, registerNativeMenuAdapter } from "./nativeMenuState";
@@ -1,11 +1,11 @@
1
1
  {
2
- "mappings": ";;;;;;;;;;;;;;;;;;;;AAsBA,cACE,mBACA,cACA,eACA,eACA,gBACA,eACA,iBACA,qBACA,YACA,mBACA,uBACA,iCACK;AACP,cAAc,mBAAmB,wBAAwB;AAGzD,SAAS,iBAAiB;AAC1B,cAAc,sBAAsB;AAGpC,SAAS,yBAAyB;AAClC,SACE,+BAA+B,sCAC/B,6BAA6B,oCAC7B,iCAAiC,8CAC5B;AACP,cACE,6BACA,wBACA,0BACK;AAGP,cAAc,4BAA4B;AAG1C,SAAS,mBAAmB;AAC5B,cAAc,wBAAwB;AAGtC,SAAS,aAAa,wBAAwB;AAC9C,cAAc,wBAAwB;AAGtC,SAAS,yBAAyB;AAClC,cAAc,8BAA8B;AAG5C,SACE,6BACA,4BACA,kCACK;AACP,cAAc,+BAA+B;AAG7C,SAAS,sBAAsB,iCAAiC;AAChE,SAAS,+BAA+B;AACxC,cAAc,gCAAgC;AAC9C,SAAS,yBAAyB;AAGlC,SAAS,gBAAgB;AACzB,cAAc,qBAAqB;AAGnC,SAAS,cAAc,kBAAkB,4BAA4B",
2
+ "mappings": ";;;;;;;;;;;;;;;;;;AAoBA,cACE,mBACA,cACA,eACA,eACA,gBACA,eACA,iBACA,YACA,mBACA,uBACA,iCACK;AACP,cAAc,mBAAmB,wBAAwB;AAGzD,SAAS,iBAAiB;AAC1B,cAAc,sBAAsB;AAGpC,SAAS,yBAAyB;AAClC,SACE,+BAA+B,sCAC/B,6BAA6B,oCAC7B,iCAAiC,8CAC5B;AACP,cACE,6BACA,wBACA,0BACK;AAGP,cAAc,4BAA4B;AAG1C,SAAS,mBAAmB;AAC5B,cAAc,wBAAwB;AAGtC,SAAS,aAAa,wBAAwB;AAC9C,cAAc,wBAAwB;AAGtC,SACE,6BACA,4BACA,kCACK;AACP,cAAc,+BAA+B;AAG7C,SAAS,sBAAsB,iCAAiC;AAChE,SAAS,+BAA+B;AACxC,cAAc,gCAAgC;AAC9C,SAAS,yBAAyB;AAGlC,SAAS,gBAAgB;AACzB,cAAc,qBAAqB;AAGnC,SAAS,cAAc,kBAAkB,4BAA4B",
3
3
  "names": [],
4
4
  "sources": [
5
5
  "src/index.ts"
6
6
  ],
7
7
  "version": 3,
8
8
  "sourcesContent": [
9
- "/**\n * @tamagui/native\n *\n * Native setup modules for Tamagui. Import these at the top of your app entry point.\n *\n * @example\n * ```tsx\n * // In your app entry (index.js or App.tsx)\n * import '@tamagui/native/setup-teleport'\n * import '@tamagui/native/setup-gesture-handler'\n * import '@tamagui/native/setup-worklets'\n * import '@tamagui/native/setup-safe-area'\n * import '@tamagui/native/expo-linear-gradient'\n * import '@tamagui/native/setup-keyboard-controller'\n *\n * // Then use Tamagui components normally\n * // Sheet will automatically use native gestures when available\n * // LinearGradient will use expo-linear-gradient when installed\n * ```\n */\n\n// types\nexport type {\n NativePortalState,\n GestureState,\n WorkletsState,\n SafeAreaState,\n SafeAreaInsets,\n SafeAreaFrame,\n SafeAreaMetrics,\n LinearGradientState,\n BurntState,\n NativePortalProps,\n NativePortalHostProps,\n NativePortalProviderProps,\n} from './types'\nexport type { NativeMenuAdapter, NativeMenuModule } from './nativeMenuState'\n\n// portal\nexport { getPortal } from './portalState'\nexport type { PortalAccessor } from './portalState'\n\n// gesture handler\nexport { getGestureHandler } from './gestureState'\nexport {\n claimExternalPressOwnership as unstable_claimExternalPressOwnership,\n hasExternalPressOwnership as unstable_hasExternalPressOwnership,\n releaseExternalPressOwnership as unstable_releaseExternalPressOwnership,\n} from './gestureState'\nexport type {\n ExternalPressOwnershipToken,\n GestureHandlerAccessor,\n PressGestureConfig,\n} from './gestureState'\n// NOTE: setupGestureHandler is exported from setup-gesture-handler.ts entry point,\n// not here, to avoid bundler pulling in RNGH require during tree-shaking\nexport type { GestureHandlerConfig } from './setup-gesture-handler'\n\n// worklets\nexport { getWorklets } from './workletsState'\nexport type { WorkletsAccessor } from './workletsState'\n\n// safe area\nexport { getSafeArea, hasSafeAreaSetup } from './safeAreaState'\nexport type { SafeAreaAccessor } from './safeAreaState'\n\n// linear gradient\nexport { getLinearGradient } from './linearGradientState'\nexport type { LinearGradientAccessor } from './linearGradientState'\n\n// keyboard controller state exports (safe - no side effects)\nexport {\n isKeyboardControllerEnabled,\n getKeyboardControllerState,\n setKeyboardControllerState,\n} from './keyboardControllerState'\nexport type { KeyboardControllerState } from './keyboardControllerState'\n\n// native menus\nexport { getNativeMenuAdapter, registerNativeMenuAdapter } from './nativeMenuState'\nexport { createExpoUIMenuAdapter } from './expoUIMenuAdapter'\nexport type { ExpoUIMenuAdapterOptions } from './expoUIMenuAdapter'\nexport { NativeMenuContext } from './nativeMenuContext'\n\n// burnt (native toasts)\nexport { getBurnt } from './burntState'\nexport type { BurntAccessor } from './burntState'\n\n// components\nexport { NativePortal, NativePortalHost, NativePortalProvider } from './components'\n"
9
+ "/**\n * @tamagui/native\n *\n * Native setup modules for Tamagui. Import these at the top of your app entry point.\n *\n * @example\n * ```tsx\n * // In your app entry (index.js or App.tsx)\n * import '@tamagui/native/setup-teleport'\n * import '@tamagui/native/setup-gesture-handler'\n * import '@tamagui/native/setup-worklets'\n * import '@tamagui/native/setup-safe-area'\n * import '@tamagui/native/setup-keyboard-controller'\n *\n * // Then use Tamagui components normally\n * // Sheet will automatically use native gestures when available\n * ```\n */\n\n// types\nexport type {\n NativePortalState,\n GestureState,\n WorkletsState,\n SafeAreaState,\n SafeAreaInsets,\n SafeAreaFrame,\n SafeAreaMetrics,\n BurntState,\n NativePortalProps,\n NativePortalHostProps,\n NativePortalProviderProps,\n} from './types'\nexport type { NativeMenuAdapter, NativeMenuModule } from './nativeMenuState'\n\n// portal\nexport { getPortal } from './portalState'\nexport type { PortalAccessor } from './portalState'\n\n// gesture handler\nexport { getGestureHandler } from './gestureState'\nexport {\n claimExternalPressOwnership as unstable_claimExternalPressOwnership,\n hasExternalPressOwnership as unstable_hasExternalPressOwnership,\n releaseExternalPressOwnership as unstable_releaseExternalPressOwnership,\n} from './gestureState'\nexport type {\n ExternalPressOwnershipToken,\n GestureHandlerAccessor,\n PressGestureConfig,\n} from './gestureState'\n// NOTE: setupGestureHandler is exported from setup-gesture-handler.ts entry point,\n// not here, to avoid bundler pulling in RNGH require during tree-shaking\nexport type { GestureHandlerConfig } from './setup-gesture-handler'\n\n// worklets\nexport { getWorklets } from './workletsState'\nexport type { WorkletsAccessor } from './workletsState'\n\n// safe area\nexport { getSafeArea, hasSafeAreaSetup } from './safeAreaState'\nexport type { SafeAreaAccessor } from './safeAreaState'\n\n// keyboard controller state exports (safe - no side effects)\nexport {\n isKeyboardControllerEnabled,\n getKeyboardControllerState,\n setKeyboardControllerState,\n} from './keyboardControllerState'\nexport type { KeyboardControllerState } from './keyboardControllerState'\n\n// native menus\nexport { getNativeMenuAdapter, registerNativeMenuAdapter } from './nativeMenuState'\nexport { createExpoUIMenuAdapter } from './expoUIMenuAdapter'\nexport type { ExpoUIMenuAdapterOptions } from './expoUIMenuAdapter'\nexport { NativeMenuContext } from './nativeMenuContext'\n\n// burnt (native toasts)\nexport { getBurnt } from './burntState'\nexport type { BurntAccessor } from './burntState'\n\n// components\nexport { NativePortal, NativePortalHost, NativePortalProvider } from './components'\n"
10
10
  ]
11
11
  }
package/types/types.d.ts CHANGED
@@ -51,10 +51,6 @@ export type NativePortalHostProps = {
51
51
  export type NativePortalProviderProps = {
52
52
  children: ReactNode;
53
53
  };
54
- export interface LinearGradientState {
55
- enabled: boolean;
56
- Component: any;
57
- }
58
54
  export interface BurntState {
59
55
  enabled: boolean;
60
56
  toast: ((options: any) => void) | null;
@@ -1,11 +1,11 @@
1
1
  {
2
- "mappings": "AAAA,cAAc,iBAAiB;AAC/B,cAAc,iBAAiB;AAE/B,YAAY,oBAAoB;CAC9B;CACA,MAAM,aAAa;;AAGrB,iBAAiB,aAAa;CAC5B;CACA;CACA;CACA;CAIA;;AAGF,iBAAiB,cAAc;CAC7B;CACA;CACA;CACA;CACA;;AAGF,iBAAiB,eAAe;CAC9B;CACA;CACA;CACA;;AAGF,iBAAiB,cAAc;CAC7B;CACA;CACA;CACA;;AAGF,iBAAiB,gBAAgB;CAC/B,QAAQ;CACR,OAAO;;AAGT,iBAAiB,cAAc;CAC7B;CACA;CACA,0BAA0B;CAC1B,yBAAyB;CACzB,gBAAgB;;AAGlB,YAAY,oBAAoB;CAC9B;CACA,UAAU;;AAGZ,YAAY,wBAAwB;CAClC;;AAGF,YAAY,4BAA4B;CACtC,UAAU;;AAGZ,iBAAiB,oBAAoB;CACnC;CACA;;AAGF,iBAAiB,WAAW;CAC1B;CACA,SAAS;CACT;;AAGF,iBAAiB,wBAAwB;CACvC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;;AAGF,iBAAiB,2BAA2B,UAAU;CACpD;;;;;CAKA;CACA",
2
+ "mappings": "AAAA,cAAc,iBAAiB;AAC/B,cAAc,iBAAiB;AAE/B,YAAY,oBAAoB;CAC9B;CACA,MAAM,aAAa;;AAGrB,iBAAiB,aAAa;CAC5B;CACA;CACA;CACA;CAIA;;AAGF,iBAAiB,cAAc;CAC7B;CACA;CACA;CACA;CACA;;AAGF,iBAAiB,eAAe;CAC9B;CACA;CACA;CACA;;AAGF,iBAAiB,cAAc;CAC7B;CACA;CACA;CACA;;AAGF,iBAAiB,gBAAgB;CAC/B,QAAQ;CACR,OAAO;;AAGT,iBAAiB,cAAc;CAC7B;CACA;CACA,0BAA0B;CAC1B,yBAAyB;CACzB,gBAAgB;;AAGlB,YAAY,oBAAoB;CAC9B;CACA,UAAU;;AAGZ,YAAY,wBAAwB;CAClC;;AAGF,YAAY,4BAA4B;CACtC,UAAU;;AAGZ,iBAAiB,WAAW;CAC1B;CACA,SAAS;CACT;;AAGF,iBAAiB,wBAAwB;CACvC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;;AAGF,iBAAiB,2BAA2B,UAAU;CACpD;;;;;CAKA;CACA",
3
3
  "names": [],
4
4
  "sources": [
5
5
  "src/types.ts"
6
6
  ],
7
7
  "version": 3,
8
8
  "sourcesContent": [
9
- "import type { ViewProps } from '@tamagui/react-native-types'\nimport type { ReactNode } from 'react'\n\nexport type NativePortalState = {\n enabled: boolean\n type: 'teleport' | 'legacy' | null\n}\n\nexport interface GestureState {\n enabled: boolean\n Gesture: any\n GestureDetector: any\n ScrollView: any\n // rngh's GestureHandlerRootView. native portals can render outside the app's\n // root gesture view, so components that portal rngh gestures need to\n // re-establish one around their content.\n RootView: any\n}\n\nexport interface WorkletsState {\n enabled: boolean\n Worklets: any\n useRunOnJS: any\n useWorklet: any\n createWorkletContextValue: any\n}\n\nexport interface SafeAreaInsets {\n top: number\n right: number\n bottom: number\n left: number\n}\n\nexport interface SafeAreaFrame {\n x: number\n y: number\n width: number\n height: number\n}\n\nexport interface SafeAreaMetrics {\n insets: SafeAreaInsets\n frame: SafeAreaFrame\n}\n\nexport interface SafeAreaState {\n didSetup: boolean\n enabled: boolean\n useSafeAreaInsets: (() => SafeAreaInsets) | null\n useSafeAreaFrame: (() => SafeAreaFrame) | null\n initialMetrics: SafeAreaMetrics | null\n}\n\nexport type NativePortalProps = {\n hostName?: string\n children: ReactNode\n}\n\nexport type NativePortalHostProps = {\n name: string\n}\n\nexport type NativePortalProviderProps = {\n children: ReactNode\n}\n\nexport interface LinearGradientState {\n enabled: boolean\n Component: any\n}\n\nexport interface BurntState {\n enabled: boolean\n toast: ((options: any) => void) | null\n dismissAllAlerts: (() => void) | null\n}\n\nexport interface KeyboardControllerState {\n enabled: boolean\n KeyboardProvider: any\n KeyboardAwareScrollView: any\n useKeyboardHandler: any\n useReanimatedKeyboardAnimation: any\n KeyboardController: any\n KeyboardEvents: any\n KeyboardStickyView: any\n}\n\nexport interface PressBoundaryProps extends ViewProps {\n enabled?: boolean\n /**\n * Alias for enabling the boundary. The behavior is limited to Tamagui's\n * shared press ownership and does not patch arbitrary RN bubbling.\n */\n stopPropagation?: boolean\n debugName?: string | null\n}\n"
9
+ "import type { ViewProps } from '@tamagui/react-native-types'\nimport type { ReactNode } from 'react'\n\nexport type NativePortalState = {\n enabled: boolean\n type: 'teleport' | 'legacy' | null\n}\n\nexport interface GestureState {\n enabled: boolean\n Gesture: any\n GestureDetector: any\n ScrollView: any\n // rngh's GestureHandlerRootView. native portals can render outside the app's\n // root gesture view, so components that portal rngh gestures need to\n // re-establish one around their content.\n RootView: any\n}\n\nexport interface WorkletsState {\n enabled: boolean\n Worklets: any\n useRunOnJS: any\n useWorklet: any\n createWorkletContextValue: any\n}\n\nexport interface SafeAreaInsets {\n top: number\n right: number\n bottom: number\n left: number\n}\n\nexport interface SafeAreaFrame {\n x: number\n y: number\n width: number\n height: number\n}\n\nexport interface SafeAreaMetrics {\n insets: SafeAreaInsets\n frame: SafeAreaFrame\n}\n\nexport interface SafeAreaState {\n didSetup: boolean\n enabled: boolean\n useSafeAreaInsets: (() => SafeAreaInsets) | null\n useSafeAreaFrame: (() => SafeAreaFrame) | null\n initialMetrics: SafeAreaMetrics | null\n}\n\nexport type NativePortalProps = {\n hostName?: string\n children: ReactNode\n}\n\nexport type NativePortalHostProps = {\n name: string\n}\n\nexport type NativePortalProviderProps = {\n children: ReactNode\n}\n\nexport interface BurntState {\n enabled: boolean\n toast: ((options: any) => void) | null\n dismissAllAlerts: (() => void) | null\n}\n\nexport interface KeyboardControllerState {\n enabled: boolean\n KeyboardProvider: any\n KeyboardAwareScrollView: any\n useKeyboardHandler: any\n useReanimatedKeyboardAnimation: any\n KeyboardController: any\n KeyboardEvents: any\n KeyboardStickyView: any\n}\n\nexport interface PressBoundaryProps extends ViewProps {\n enabled?: boolean\n /**\n * Alias for enabling the boundary. The behavior is limited to Tamagui's\n * shared press ownership and does not patch arbitrary RN bubbling.\n */\n stopPropagation?: boolean\n debugName?: string | null\n}\n"
10
10
  ]
11
11
  }
@@ -1,41 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
- get: () => from[key],
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- return to;
19
- };
20
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
- var linearGradientState_exports = {};
22
- __export(linearGradientState_exports, { getLinearGradient: () => getLinearGradient });
23
- module.exports = __toCommonJS(linearGradientState_exports);
24
- var import_globalState = require("./globalState.cjs");
25
- const state = (0, import_globalState.createGlobalState)(`linear_gradient`, {
26
- enabled: false,
27
- Component: null
28
- });
29
- function getLinearGradient() {
30
- return {
31
- get isEnabled() {
32
- return state.get().enabled;
33
- },
34
- get state() {
35
- return state.get();
36
- },
37
- set(newState) {
38
- state.set(newState);
39
- }
40
- };
41
- }
@@ -1,43 +0,0 @@
1
- "use strict";
2
-
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
12
- };
13
- var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
21
- };
22
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
- var linearGradientState_exports = {};
24
- __export(linearGradientState_exports, { getLinearGradient: () => getLinearGradient });
25
- module.exports = __toCommonJS(linearGradientState_exports);
26
- var import_globalState = require("./globalState.native.js");
27
- var state = (0, import_globalState.createGlobalState)(`linear_gradient`, {
28
- enabled: false,
29
- Component: null
30
- });
31
- function getLinearGradient() {
32
- return {
33
- get isEnabled() {
34
- return state.get().enabled;
35
- },
36
- get state() {
37
- return state.get();
38
- },
39
- set(newState) {
40
- state.set(newState);
41
- }
42
- };
43
- }
@@ -1,45 +0,0 @@
1
- "use strict";
2
-
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
12
- };
13
- var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
21
- };
22
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
- var linearGradientState_exports = {};
24
- __export(linearGradientState_exports, { getLinearGradient: () => getLinearGradient });
25
- module.exports = __toCommonJS(linearGradientState_exports);
26
- var import_globalState = require("./globalState.native.js");
27
- var state = (0, import_globalState.createGlobalState)(`linear_gradient`, {
28
- enabled: false,
29
- Component: null
30
- });
31
- function getLinearGradient() {
32
- return {
33
- get isEnabled() {
34
- return state.get().enabled;
35
- },
36
- get state() {
37
- return state.get();
38
- },
39
- set(newState) {
40
- state.set(newState);
41
- }
42
- };
43
- }
44
-
45
- //# sourceMappingURL=linearGradientState.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"linearGradientState.native.js","names":[],"sources":["cjs/linearGradientState.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 linearGradientState_exports = {};\n__export(linearGradientState_exports, {\n getLinearGradient: () => getLinearGradient\n});\nmodule.exports = __toCommonJS(linearGradientState_exports);\nvar import_globalState = require(\"./globalState\");\nvar state = (0, import_globalState.createGlobalState)(`linear_gradient`, {\n enabled: false,\n Component: null\n});\nfunction getLinearGradient() {\n return {\n get isEnabled() {\n return state.get().enabled;\n },\n get state() {\n return state.get();\n },\n set(newState) {\n state.set(newState);\n }\n };\n}\n//# sourceMappingURL=linearGradientState.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,8BAA8B,CAAC;AACnC,SAAS,6BAA6B,EACpC,yBAAyB,kBAC3B,CAAC;AACD,OAAO,UAAU,aAAa,2BAA2B;AACzD,IAAI,qBAAqB,QAAQ,yBAAe;AAChD,IAAI,SAAS,GAAG,mBAAmB,kBAAiB,CAAE,mBAAmB;CACvE,SAAS;CACT,WAAW;AACb,CAAC;AACD,SAAS,oBAAoB;CAC3B,OAAO;EACL,IAAI,YAAY;GACd,OAAO,MAAM,IAAI,CAAC,CAAC;EACrB;EACA,IAAI,QAAQ;GACV,OAAO,MAAM,IAAI;EACnB;EACA,IAAI,UAAU;GACZ,MAAM,IAAI,QAAQ;EACpB;CACF;AACF"}
@@ -1,16 +0,0 @@
1
- var import_linearGradientState = require("./linearGradientState.cjs");
2
- function setup() {
3
- const g = globalThis;
4
- if (g.__tamagui_native_linear_gradient_setup) return;
5
- g.__tamagui_native_linear_gradient_setup = true;
6
- try {
7
- const expoLinearGradient = require("expo-linear-gradient");
8
- if (expoLinearGradient?.LinearGradient) {
9
- (0, import_linearGradientState.getLinearGradient)().set({
10
- enabled: true,
11
- Component: expoLinearGradient.LinearGradient
12
- });
13
- }
14
- } catch {}
15
- }
16
- setup();
@@ -1,18 +0,0 @@
1
- "use strict";
2
-
3
- var import_linearGradientState = require("./linearGradientState.native.js");
4
- function setup() {
5
- var g = globalThis;
6
- if (g.__tamagui_native_linear_gradient_setup) return;
7
- g.__tamagui_native_linear_gradient_setup = true;
8
- try {
9
- var expoLinearGradient = require("expo-linear-gradient");
10
- if (expoLinearGradient === null || expoLinearGradient === void 0 ? void 0 : expoLinearGradient.LinearGradient) {
11
- (0, import_linearGradientState.getLinearGradient)().set({
12
- enabled: true,
13
- Component: expoLinearGradient.LinearGradient
14
- });
15
- }
16
- } catch (e) {}
17
- }
18
- setup();
@@ -1,20 +0,0 @@
1
- "use strict";
2
-
3
- var import_linearGradientState = require("./linearGradientState.native.js");
4
- function setup() {
5
- var g = globalThis;
6
- if (g.__tamagui_native_linear_gradient_setup) return;
7
- g.__tamagui_native_linear_gradient_setup = true;
8
- try {
9
- var expoLinearGradient = require("expo-linear-gradient");
10
- if (expoLinearGradient === null || expoLinearGradient === void 0 ? void 0 : expoLinearGradient.LinearGradient) {
11
- (0, import_linearGradientState.getLinearGradient)().set({
12
- enabled: true,
13
- Component: expoLinearGradient.LinearGradient
14
- });
15
- }
16
- } catch (e) {}
17
- }
18
- setup();
19
-
20
- //# sourceMappingURL=setup-expo-linear-gradient.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"setup-expo-linear-gradient.native.js","names":[],"sources":["cjs/setup-expo-linear-gradient.native.js"],"sourcesContent":["\"use strict\";\nvar import_linearGradientState = require(\"./linearGradientState\");\nfunction setup() {\n var g = globalThis;\n if (g.__tamagui_native_linear_gradient_setup) return;\n g.__tamagui_native_linear_gradient_setup = true;\n try {\n var expoLinearGradient = require(\"expo-linear-gradient\");\n if (expoLinearGradient === null || expoLinearGradient === void 0 ? void 0 : expoLinearGradient.LinearGradient) {\n (0, import_linearGradientState.getLinearGradient)().set({\n enabled: true,\n Component: expoLinearGradient.LinearGradient\n });\n }\n } catch (e) {\n }\n}\nsetup();\n//# sourceMappingURL=setup-expo-linear-gradient.js.map\n"],"mappings":";;;AACA,IAAI,6BAA6B,QAAQ,iCAAuB;AAChE,SAAS,QAAQ;CACf,IAAI,IAAI;CACR,IAAI,EAAE,wCAAwC;CAC9C,EAAE,yCAAyC;CAC3C,IAAI;EACF,IAAI,qBAAqB,QAAQ,sBAAsB;EACvD,IAAI,uBAAuB,QAAQ,uBAAuB,KAAK,IAAI,KAAK,IAAI,mBAAmB,gBAAgB;GAC7G,CAAC,GAAG,2BAA2B,kBAAiB,CAAE,CAAC,CAAC,IAAI;IACtD,SAAS;IACT,WAAW,mBAAmB;GAChC,CAAC;EACH;CACF,SAAS,GAAG,CACZ;AACF;AACA,MAAM"}
@@ -1,22 +0,0 @@
1
- import { createGlobalState } from "./globalState.mjs";
2
-
3
- const state = createGlobalState(`linear_gradient`, {
4
- enabled: false,
5
- Component: null
6
- });
7
- function getLinearGradient() {
8
- return {
9
- get isEnabled() {
10
- return state.get().enabled;
11
- },
12
- get state() {
13
- return state.get();
14
- },
15
- set(newState) {
16
- state.set(newState);
17
- }
18
- };
19
- }
20
-
21
- export { getLinearGradient };
22
- //# sourceMappingURL=linearGradientState.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"linearGradientState.js","names":[],"sources":["esm/linearGradientState.js"],"sourcesContent":["import { createGlobalState } from \"./globalState\";\nconst state = createGlobalState(`linear_gradient`, {\n enabled: false,\n Component: null\n});\nfunction getLinearGradient() {\n return {\n get isEnabled() {\n return state.get().enabled;\n },\n get state() {\n return state.get();\n },\n set(newState) {\n state.set(newState);\n }\n };\n}\nexport {\n getLinearGradient\n};\n//# sourceMappingURL=linearGradientState.js.map\n"],"mappings":";;;AACA,MAAM,QAAQ,kBAAkB,mBAAmB;CACjD,SAAS;CACT,WAAW;AACb,CAAC;AACD,SAAS,oBAAoB;CAC3B,OAAO;EACL,IAAI,YAAY;GACd,OAAO,MAAM,IAAI,CAAC,CAAC;EACrB;EACA,IAAI,QAAQ;GACV,OAAO,MAAM,IAAI;EACnB;EACA,IAAI,UAAU;GACZ,MAAM,IAAI,QAAQ;EACpB;CACF;AACF"}
@@ -1,22 +0,0 @@
1
- import { createGlobalState } from "./globalState.native.js";
2
-
3
- var state = createGlobalState(`linear_gradient`, {
4
- enabled: false,
5
- Component: null
6
- });
7
- function getLinearGradient() {
8
- return {
9
- get isEnabled() {
10
- return state.get().enabled;
11
- },
12
- get state() {
13
- return state.get();
14
- },
15
- set(newState) {
16
- state.set(newState);
17
- }
18
- };
19
- }
20
-
21
- export { getLinearGradient };
22
- //# sourceMappingURL=linearGradientState.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"linearGradientState.native.js","names":[],"sources":["esm/linearGradientState.native.js"],"sourcesContent":["import { createGlobalState } from \"./globalState\";\nvar state = createGlobalState(`linear_gradient`, {\n enabled: false,\n Component: null\n});\nfunction getLinearGradient() {\n return {\n get isEnabled() {\n return state.get().enabled;\n },\n get state() {\n return state.get();\n },\n set(newState) {\n state.set(newState);\n }\n };\n}\nexport {\n getLinearGradient\n};\n//# sourceMappingURL=linearGradientState.js.map\n"],"mappings":";;;AACA,IAAI,QAAQ,kBAAkB,mBAAmB;CAC/C,SAAS;CACT,WAAW;AACb,CAAC;AACD,SAAS,oBAAoB;CAC3B,OAAO;EACL,IAAI,YAAY;GACd,OAAO,MAAM,IAAI,CAAC,CAAC;EACrB;EACA,IAAI,QAAQ;GACV,OAAO,MAAM,IAAI;EACnB;EACA,IAAI,UAAU;GACZ,MAAM,IAAI,QAAQ;EACpB;CACF;AACF"}
@@ -1,19 +0,0 @@
1
- import { getLinearGradient } from "./linearGradientState.mjs";
2
-
3
- function setup() {
4
- const g = globalThis;
5
- if (g.__tamagui_native_linear_gradient_setup) return;
6
- g.__tamagui_native_linear_gradient_setup = true;
7
- try {
8
- const expoLinearGradient = require("expo-linear-gradient");
9
- if (expoLinearGradient?.LinearGradient) {
10
- getLinearGradient().set({
11
- enabled: true,
12
- Component: expoLinearGradient.LinearGradient
13
- });
14
- }
15
- } catch {}
16
- }
17
- setup();
18
-
19
- //# sourceMappingURL=setup-expo-linear-gradient.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"setup-expo-linear-gradient.js","names":[],"sources":["esm/setup-expo-linear-gradient.js"],"sourcesContent":["import { getLinearGradient } from \"./linearGradientState\";\nfunction setup() {\n const g = globalThis;\n if (g.__tamagui_native_linear_gradient_setup) return;\n g.__tamagui_native_linear_gradient_setup = true;\n try {\n const expoLinearGradient = require(\"expo-linear-gradient\");\n if (expoLinearGradient?.LinearGradient) {\n getLinearGradient().set({\n enabled: true,\n Component: expoLinearGradient.LinearGradient\n });\n }\n } catch {\n }\n}\nsetup();\n//# sourceMappingURL=setup-expo-linear-gradient.js.map\n"],"mappings":";;;;;;;;;;AACA,SAAS,QAAQ;CACf,MAAM,IAAI;CACV,IAAI,EAAE,wCAAwC;CAC9C,EAAE,yCAAyC;CAC3C,IAAI;EACF,MAAM,+BAA6B,sBAAsB;EACzD,IAAI,oBAAoB,gBAAgB;GACtC,kBAAkB,CAAC,CAAC,IAAI;IACtB,SAAS;IACT,WAAW,mBAAmB;GAChC,CAAC;EACH;CACF,QAAQ,CACR;AACF;AACA,MAAM"}
@@ -1,19 +0,0 @@
1
- import { getLinearGradient } from "./linearGradientState.native.js";
2
-
3
- function setup() {
4
- var g = globalThis;
5
- if (g.__tamagui_native_linear_gradient_setup) return;
6
- g.__tamagui_native_linear_gradient_setup = true;
7
- try {
8
- var expoLinearGradient = require("expo-linear-gradient");
9
- if (expoLinearGradient === null || expoLinearGradient === void 0 ? void 0 : expoLinearGradient.LinearGradient) {
10
- getLinearGradient().set({
11
- enabled: true,
12
- Component: expoLinearGradient.LinearGradient
13
- });
14
- }
15
- } catch (e) {}
16
- }
17
- setup();
18
-
19
- //# sourceMappingURL=setup-expo-linear-gradient.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"setup-expo-linear-gradient.native.js","names":[],"sources":["esm/setup-expo-linear-gradient.native.js"],"sourcesContent":["import { getLinearGradient } from \"./linearGradientState\";\nfunction setup() {\n var g = globalThis;\n if (g.__tamagui_native_linear_gradient_setup) return;\n g.__tamagui_native_linear_gradient_setup = true;\n try {\n var expoLinearGradient = require(\"expo-linear-gradient\");\n if (expoLinearGradient === null || expoLinearGradient === void 0 ? void 0 : expoLinearGradient.LinearGradient) {\n getLinearGradient().set({\n enabled: true,\n Component: expoLinearGradient.LinearGradient\n });\n }\n } catch (e) {\n }\n}\nsetup();\n//# sourceMappingURL=setup-expo-linear-gradient.js.map\n"],"mappings":";;;;;;;;;;AACA,SAAS,QAAQ;CACf,IAAI,IAAI;CACR,IAAI,EAAE,wCAAwC;CAC9C,EAAE,yCAAyC;CAC3C,IAAI;EACF,IAAI,+BAA6B,sBAAsB;EACvD,IAAI,uBAAuB,QAAQ,uBAAuB,KAAK,IAAI,KAAK,IAAI,mBAAmB,gBAAgB;GAC7G,kBAAkB,CAAC,CAAC,IAAI;IACtB,SAAS;IACT,WAAW,mBAAmB;GAChC,CAAC;EACH;CACF,SAAS,GAAG,CACZ;AACF;AACA,MAAM"}
@@ -1,2 +0,0 @@
1
- // compat with tamagui static compiler
2
- Object.assign(module.exports, require('../dist/cjs/setup-expo-linear-gradient.cjs'))
@@ -1,2 +0,0 @@
1
- // compat with metro without package exports
2
- Object.assign(module.exports, require('../dist/cjs/setup-expo-linear-gradient.cjs'))
@@ -1,2 +0,0 @@
1
- // compat with tamagui static compiler
2
- Object.assign(module.exports, require('../dist/cjs/setup-expo-linear-gradient.native.js'))
@@ -1,2 +0,0 @@
1
- // compat with metro without package exports
2
- Object.assign(module.exports, require('../dist/cjs/setup-expo-linear-gradient.native.js'))
@@ -1 +0,0 @@
1
- Object.assign(module.exports, require('./dist/cjs/setup-expo-linear-gradient.cjs'))
@@ -1,27 +0,0 @@
1
- import { createGlobalState } from './globalState'
2
- import type { LinearGradientState } from './types'
3
-
4
- const state = createGlobalState<LinearGradientState>(`linear_gradient`, {
5
- enabled: false,
6
- Component: null,
7
- })
8
-
9
- export interface LinearGradientAccessor {
10
- readonly isEnabled: boolean
11
- readonly state: LinearGradientState
12
- set(newState: LinearGradientState): void
13
- }
14
-
15
- export function getLinearGradient(): LinearGradientAccessor {
16
- return {
17
- get isEnabled(): boolean {
18
- return state.get().enabled
19
- },
20
- get state(): LinearGradientState {
21
- return state.get()
22
- },
23
- set(newState: LinearGradientState): void {
24
- state.set(newState)
25
- },
26
- }
27
- }
@@ -1,36 +0,0 @@
1
- /**
2
- * Setup expo-linear-gradient for Tamagui.
3
- *
4
- * Simply import this module at the top of your app entry point:
5
- *
6
- * @example
7
- * ```tsx
8
- * import '@tamagui/native/setup-expo-linear-gradient'
9
- * ```
10
- *
11
- * This automatically detects and configures expo-linear-gradient.
12
- * If not installed, LinearGradient will log a warning on native.
13
- */
14
-
15
- import { getLinearGradient } from './linearGradientState'
16
-
17
- function setup(): void {
18
- const g = globalThis as any
19
- if (g.__tamagui_native_linear_gradient_setup) return
20
- g.__tamagui_native_linear_gradient_setup = true
21
-
22
- try {
23
- const expoLinearGradient = require('expo-linear-gradient')
24
- if (expoLinearGradient?.LinearGradient) {
25
- getLinearGradient().set({
26
- enabled: true,
27
- Component: expoLinearGradient.LinearGradient,
28
- })
29
- }
30
- } catch {
31
- // expo-linear-gradient not installed, will use CSS fallback
32
- }
33
- }
34
-
35
- // run setup immediately on import
36
- setup()
@@ -1,9 +0,0 @@
1
- import type { LinearGradientState } from "./types";
2
- export interface LinearGradientAccessor {
3
- readonly isEnabled: boolean;
4
- readonly state: LinearGradientState;
5
- set(newState: LinearGradientState): void;
6
- }
7
- export declare function getLinearGradient(): LinearGradientAccessor;
8
-
9
- //# sourceMappingURL=linearGradientState.d.ts.map
@@ -1,11 +0,0 @@
1
- {
2
- "mappings": "AACA,cAAc,2BAA2B;AAOzC,iBAAiB,uBAAuB;UAC7B;UACA,OAAO;CAChB,IAAI,UAAU;;AAGhB,OAAO,iBAAS,qBAAqB",
3
- "names": [],
4
- "sources": [
5
- "src/linearGradientState.ts"
6
- ],
7
- "version": 3,
8
- "sourcesContent": [
9
- "import { createGlobalState } from './globalState'\nimport type { LinearGradientState } from './types'\n\nconst state = createGlobalState<LinearGradientState>(`linear_gradient`, {\n enabled: false,\n Component: null,\n})\n\nexport interface LinearGradientAccessor {\n readonly isEnabled: boolean\n readonly state: LinearGradientState\n set(newState: LinearGradientState): void\n}\n\nexport function getLinearGradient(): LinearGradientAccessor {\n return {\n get isEnabled(): boolean {\n return state.get().enabled\n },\n get state(): LinearGradientState {\n return state.get()\n },\n set(newState: LinearGradientState): void {\n state.set(newState)\n },\n }\n}\n"
10
- ]
11
- }
@@ -1,3 +0,0 @@
1
- export {};
2
-
3
- //# sourceMappingURL=setup-expo-linear-gradient.d.ts.map
@@ -1,11 +0,0 @@
1
- {
2
- "mappings": "",
3
- "names": [],
4
- "sources": [
5
- "src/setup-expo-linear-gradient.ts"
6
- ],
7
- "version": 3,
8
- "sourcesContent": [
9
- "/**\n * Setup expo-linear-gradient for Tamagui.\n *\n * Simply import this module at the top of your app entry point:\n *\n * @example\n * ```tsx\n * import '@tamagui/native/setup-expo-linear-gradient'\n * ```\n *\n * This automatically detects and configures expo-linear-gradient.\n * If not installed, LinearGradient will log a warning on native.\n */\n\nimport { getLinearGradient } from './linearGradientState'\n\nfunction setup(): void {\n const g = globalThis as any\n if (g.__tamagui_native_linear_gradient_setup) return\n g.__tamagui_native_linear_gradient_setup = true\n\n try {\n const expoLinearGradient = require('expo-linear-gradient')\n if (expoLinearGradient?.LinearGradient) {\n getLinearGradient().set({\n enabled: true,\n Component: expoLinearGradient.LinearGradient,\n })\n }\n } catch {\n // expo-linear-gradient not installed, will use CSS fallback\n }\n}\n\n// run setup immediately on import\nsetup()\n"
10
- ]
11
- }