esoftplay 0.0.108-d → 0.0.108-e

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.
@@ -141,12 +141,8 @@ class m extends LibComponent<LibImageProps, LibImageState> {
141
141
  static fromGallery(options?: LibImageGalleryOptions): Promise<string | string[]> {
142
142
  return new Promise((_r) => {
143
143
  setTimeout(async () => {
144
- const { status } = await ImagePicker.getCameraPermissionsAsync();
144
+ const { status } = await ImagePicker.requestMediaLibraryPermissionsAsync();
145
145
  var finalStatus = status
146
- if (finalStatus !== 'granted') {
147
- const { status } = await ImagePicker.requestMediaLibraryPermissionsAsync();
148
- finalStatus = status
149
- }
150
146
  if (finalStatus != 'granted') {
151
147
  Alert.alert(esp.appjson().expo.name + " tidak dapat mengakses galeri ", "Mohon Pastikan anda memberikan izin " + esp.appjson().expo.name + " untuk dapat mengambil foto")
152
148
  return
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay",
3
- "version": "0.0.108-d",
3
+ "version": "0.0.108-e",
4
4
  "description": "embedding data from esoftplay framework (web based) into mobile app",
5
5
  "main": "cache/index.js",
6
6
  "types": "../../index.d.ts",