@jobber/components-native 0.89.1 → 0.89.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components-native",
3
- "version": "0.89.1",
3
+ "version": "0.89.2",
4
4
  "license": "MIT",
5
5
  "description": "React Native implementation of Atlantis",
6
6
  "repository": {
@@ -94,5 +94,5 @@
94
94
  "react-native-safe-area-context": "^5.4.0",
95
95
  "react-native-svg": ">=12.0.0"
96
96
  },
97
- "gitHead": "25bace94c2635ea2ae92f0aa7ae7d5b5c40841d2"
97
+ "gitHead": "33e1f533d1cf64dc6746f5db8f00763994fe5895"
98
98
  }
@@ -5,19 +5,16 @@ export const UNSAFE_WrappedModalize = forwardRef((props, ref) => {
5
5
  const [openRenderId, setOpenRenderId] = useState(0);
6
6
  useImperativeHandle(ref, () => ({
7
7
  open(dest) {
8
- var _a;
9
8
  setOpenRenderId(id => id + 1);
10
9
  // Open on a fresh tick for additional safety
11
10
  requestAnimationFrame(() => {
12
11
  var _a;
13
12
  (_a = innerRef.current) === null || _a === void 0 ? void 0 : _a.open(dest);
14
13
  });
15
- (_a = props.onOpen) === null || _a === void 0 ? void 0 : _a.call(props);
16
14
  },
17
15
  close(dest) {
18
- var _a, _b;
16
+ var _a;
19
17
  (_a = innerRef.current) === null || _a === void 0 ? void 0 : _a.close(dest);
20
- (_b = props.onClose) === null || _b === void 0 ? void 0 : _b.call(props);
21
18
  },
22
19
  }), []);
23
20
  // Use a unique key to force a remount, ensuring we get fresh gesture handler nodes within modalize