@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 +3 -0
- package/package.json +1 -1
- package/src/lib/MIPickerApi.js +16 -0
package/changes.md
CHANGED
package/package.json
CHANGED
package/src/lib/MIPickerApi.js
CHANGED
|
@@ -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
|
}
|