@teamnhz/rn-ui-toolkit 1.2.2 โ†’ 1.2.3

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.
@@ -14,6 +14,15 @@ const normalizePath = (p) => {
14
14
  return "";
15
15
  return p.startsWith("file://") ? p : `file://${p}`;
16
16
  };
17
+ const resetInternalState = () => {
18
+ try {
19
+ ImageCropPicker.clean().catch(() => { });
20
+ ImageCropPicker.cleanSingle && ImageCropPicker.cleanSingle().catch(() => { });
21
+ }
22
+ catch { }
23
+ // ๐Ÿงน If you stored something in ref or state in future
24
+ // you can reset here too.
25
+ };
17
26
  //--------------------------------------
18
27
  // ๐ŸŸฆ FINAL RESPONSE FORMAT
19
28
  //--------------------------------------
@@ -45,6 +54,7 @@ const ImagePicker = ({ mediaType, visible, onSuccess, onClose, enableCompression
45
54
  loading: false,
46
55
  data: buildResponse(raw, compressed),
47
56
  });
57
+ resetInternalState();
48
58
  };
49
59
  //--------------------------------------
50
60
  // COMPRESS IMAGE
@@ -182,7 +192,7 @@ const styles = StyleSheet.create({
182
192
  row: {
183
193
  flexDirection: "row",
184
194
  alignItems: "center",
185
- justifyContent: "center", // ๐Ÿ”ฅ TEXT CENTERED
195
+ justifyContent: "center",
186
196
  paddingVertical: 14,
187
197
  },
188
198
  text: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamnhz/rn-ui-toolkit",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [