react-native-screen-transitions 3.4.0-rc.1 → 3.4.0

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 (21) hide show
  1. package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js +0 -1
  2. package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
  3. package/lib/commonjs/shared/utils/bounds/zoom/build.js +10 -8
  4. package/lib/commonjs/shared/utils/bounds/zoom/build.js.map +1 -1
  5. package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js +0 -1
  6. package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
  7. package/lib/module/shared/utils/bounds/zoom/build.js +10 -8
  8. package/lib/module/shared/utils/bounds/zoom/build.js.map +1 -1
  9. package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts +3 -206
  10. package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts.map +1 -1
  11. package/lib/typescript/shared/components/create-boundary-component/index.d.ts +2 -206
  12. package/lib/typescript/shared/components/create-boundary-component/index.d.ts.map +1 -1
  13. package/lib/typescript/shared/components/create-transition-aware-component.d.ts +5 -6
  14. package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
  15. package/lib/typescript/shared/components/screen-container/layers/maybe-masked-navigation-container.d.ts.map +1 -1
  16. package/lib/typescript/shared/index.d.ts +647 -909
  17. package/lib/typescript/shared/index.d.ts.map +1 -1
  18. package/lib/typescript/shared/utils/bounds/zoom/build.d.ts.map +1 -1
  19. package/package.json +1 -1
  20. package/src/shared/components/screen-container/layers/maybe-masked-navigation-container.tsx +0 -1
  21. package/src/shared/utils/bounds/zoom/build.ts +11 -8
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,UAAU,EAAE,IAAI,EAAE,MAAM,cAAc,C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tC,YAAY,EACX,iBAAiB,EACjB,eAAe,EACf,wBAAwB,EACxB,gCAAgC,EAChC,iCAAiC,EACjC,2BAA2B,EAC3B,yBAAyB,EACzB,YAAY,EACZ,wBAAwB,EACxB,uBAAuB,EACvB,sBAAsB,EACtB,2BAA2B,EAC3B,mBAAmB,EACnB,cAAc,GACd,MAAM,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/zoom/build.ts"],"names":[],"mappings":"AAyCA,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAsL5E,wBAAgB,eAAe,CAAC,EAC/B,WAAW,EACX,WAAW,EACX,KAAK,GACL,EAAE,qBAAqB,GAAG,qBAAqB,CAwa/C"}
1
+ {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/zoom/build.ts"],"names":[],"mappings":"AAyCA,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAyL5E,wBAAgB,eAAe,CAAC,EAC/B,WAAW,EACX,WAAW,EACX,KAAK,GACL,EAAE,qBAAqB,GAAG,qBAAqB,CAwa/C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-screen-transitions",
3
- "version": "3.4.0-rc.1",
3
+ "version": "3.4.0",
4
4
  "description": "Easy screen transitions for React Native and Expo",
5
5
  "author": "Ed",
6
6
  "license": "MIT",
@@ -78,7 +78,6 @@ export const MaybeMaskedNavigationContainer = memo(
78
78
  styles.navigationContainer,
79
79
  animatedNavigationMaskContainerStyle,
80
80
  ]}
81
- pointerEvents={pointerEvents}
82
81
  collapsable={false}
83
82
  >
84
83
  {children}
@@ -44,6 +44,15 @@ import type { BuildZoomStylesParams, ZoomInterpolatedStyle } from "./types";
44
44
  const IDENTITY_DRAG_SCALE_OUTPUT = [1, 1] as const;
45
45
  const presentedZoomTagByRoute = makeMutable<Record<string, string>>({});
46
46
 
47
+ function cachePresentedZoomTag(routeKey: string, resolvedTag: string) {
48
+ "worklet";
49
+
50
+ presentedZoomTagByRoute.value = {
51
+ ...presentedZoomTagByRoute.value,
52
+ [routeKey]: resolvedTag,
53
+ };
54
+ }
55
+
47
56
  /* -------------------------------------------------------------------------- */
48
57
  /* LOCAL HELPERS */
49
58
  /* -------------------------------------------------------------------------- */
@@ -189,10 +198,7 @@ function resolveEffectiveZoomTag(params: {
189
198
  const shouldFreezeDuringEnter = entering && animating && !isFreshOpenFrame;
190
199
 
191
200
  if (!cachedTag || isFreshOpenFrame) {
192
- presentedZoomTagByRoute.modify((state) => ({
193
- ...state,
194
- [activeRouteKey]: resolvedTag,
195
- }));
201
+ cachePresentedZoomTag(activeRouteKey, resolvedTag);
196
202
  return resolvedTag;
197
203
  }
198
204
 
@@ -208,10 +214,7 @@ function resolveEffectiveZoomTag(params: {
208
214
  }
209
215
 
210
216
  if (cachedTag !== resolvedTag) {
211
- presentedZoomTagByRoute.modify((state) => ({
212
- ...state,
213
- [activeRouteKey]: resolvedTag,
214
- }));
217
+ cachePresentedZoomTag(activeRouteKey, resolvedTag);
215
218
  }
216
219
 
217
220
  return resolvedTag;