@applicaster/zapp-react-native-utils 14.0.43-alpha.4121073050 → 14.0.44

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.
@@ -343,6 +343,20 @@ export function withActionExecutor(Component) {
343
343
  const navigationAction = action.options?.navigationAction;
344
344
  const entrySource = action.options?.entry;
345
345
 
346
+ /**
347
+ * Arbitrary values passed through to the destination screen.
348
+ *
349
+ * They are stored on the navigation route as
350
+ * `NavigationScreenData.options` and read on the target screen via
351
+ * `useNavigation().data?.options`. Use this to hand per-navigation
352
+ * parameters to a screen instead of routing them through
353
+ * module-level state.
354
+ *
355
+ * Note: `legacyScreenData()` does not carry these values, so they are
356
+ * not visible through `useCurrentScreenData()` / `useRoute()`.
357
+ */
358
+ const navigationOptions = action.options?.navigationOptions;
359
+
346
360
  const entry = entrySource
347
361
  ? entrySource === "@{entry/}"
348
362
  ? context?.entry
@@ -370,9 +384,9 @@ export function withActionExecutor(Component) {
370
384
  };
371
385
 
372
386
  if (navigationAction === "push") {
373
- navigator.push(overriddenEntry);
387
+ navigator.push(overriddenEntry, navigationOptions);
374
388
  } else {
375
- navigator.replace(overriddenEntry);
389
+ navigator.replace(overriddenEntry, navigationOptions);
376
390
  }
377
391
 
378
392
  return ActionResult.Success;
@@ -399,9 +413,9 @@ export function withActionExecutor(Component) {
399
413
  context?.callback?.({ success: false, error: null, abort: true });
400
414
 
401
415
  if (navigationAction === "push") {
402
- navigator.push(river);
416
+ navigator.push(river, navigationOptions);
403
417
  } else {
404
- navigator.replace(river);
418
+ navigator.replace(river, navigationOptions);
405
419
  }
406
420
 
407
421
  return ActionResult.Success;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-native-utils",
3
- "version": "14.0.43-alpha.4121073050",
3
+ "version": "14.0.44",
4
4
  "description": "Applicaster Zapp React Native utilities package",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "homepage": "https://github.com/applicaster/quickbrick#readme",
29
29
  "dependencies": {
30
- "@applicaster/applicaster-types": "14.0.43-alpha.4121073050",
30
+ "@applicaster/applicaster-types": "14.0.44",
31
31
  "buffer": "^5.2.1",
32
32
  "camelize": "^1.0.0",
33
33
  "dayjs": "^1.11.10",
@@ -117,6 +117,7 @@ export const useCellClick = ({
117
117
  }
118
118
  },
119
119
  [
120
+ item,
120
121
  onCellTap,
121
122
  currentRoute,
122
123
  setEntryContext,
@@ -138,5 +139,5 @@ export const useCellClick = ({
138
139
  onPressRef.current = onPress;
139
140
  }
140
141
 
141
- return React.useCallback(onPressRef.current, []);
142
+ return React.useCallback(onPressRef.current, [item]);
142
143
  };