@supportworks/multi-imagepicker 8.0.11 → 8.0.12

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/changes.md CHANGED
@@ -1,3 +1,6 @@
1
+ # v8.0.11 2025-12-05
2
+ * added back previous get default showToCustomer logic, in case we want to use it later
3
+
1
4
  # v8.0.11 2025-12-05
2
5
  * always default to show customer
3
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supportworks/multi-imagepicker",
3
- "version": "8.0.11",
3
+ "version": "8.0.12",
4
4
  "description": "Android and iOS customized multiple image picker. For react-native >= 0.60.",
5
5
  "main": "index.js",
6
6
  "author": {
@@ -69,5 +69,21 @@ export default class MIPickerApi {
69
69
 
70
70
  async getDefaultShowToCustomer () {
71
71
  return true
72
+
73
+ /*
74
+ console.log('in getDefaultShowToCustomer')
75
+ if ((this._defaultShowToCustomer !== null) && (this._defaultShowToCustomer !== undefined)) {
76
+ return this._defaultShowToCustomer
77
+ }
78
+ console.log('in getDefaultShowToCustomer, trying to get value from AsyncStorage')
79
+ // not a value yet, so look in AsyncStorage
80
+ const retVal = await AsyncStorage.getItem('@MIP_ShowToCustomer')
81
+ if (retVal === 'N') {
82
+ console.log('getDefaultShowToCustomer: return false')
83
+ return false
84
+ } else {
85
+ console.log('getDefaultShowToCustomer: return true')
86
+ return true
87
+ }*/
72
88
  }
73
89
  }