@supportworks/multi-imagepicker 8.0.10 → 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,8 @@
1
+ # v8.0.11 2025-12-05
2
+ * added back previous get default showToCustomer logic, in case we want to use it later
3
+
4
+ # v8.0.11 2025-12-05
5
+ * always default to show customer
1
6
 
2
7
  # v8.0.10 2025-12-01
3
8
  * removed console log
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supportworks/multi-imagepicker",
3
- "version": "8.0.10",
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": {
@@ -68,19 +68,22 @@ export default class MIPickerApi {
68
68
  }
69
69
 
70
70
  async getDefaultShowToCustomer () {
71
- console.log('in getDefaultShowToCustomer')
72
- if ((this._defaultShowToCustomer !== null) && (this._defaultShowToCustomer !== undefined)) {
73
- return this._defaultShowToCustomer
74
- }
75
- console.log('in getDefaultShowToCustomer, trying to get value from AsyncStorage')
76
- // not a value yet, so look in AsyncStorage
77
- const retVal = await AsyncStorage.getItem('@MIP_ShowToCustomer')
78
- if (retVal === 'N') {
79
- console.log('getDefaultShowToCustomer: return false')
80
- return false
81
- } else {
82
- console.log('getDefaultShowToCustomer: return true')
83
- return true
84
- }
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
+ }*/
85
88
  }
86
89
  }