motorinc-gallery-picker-pro 1.0.0 → 1.0.2
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/ios/ImagePickerModule.m
CHANGED
|
@@ -47,7 +47,7 @@ RCT_EXPORT_MODULE(ImagePickerModule);
|
|
|
47
47
|
[[PHPhotoLibrary sharedPhotoLibrary] unregisterChangeObserver:self];
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
RCT_EXPORT_METHOD(openCamera:(NSDictionary *)options
|
|
50
|
+
RCT_EXPORT_METHOD(openCamera:(nonnull NSDictionary *)options
|
|
51
51
|
resolver:(RCTPromiseResolveBlock)resolve
|
|
52
52
|
rejecter:(RCTPromiseRejectBlock)reject)
|
|
53
53
|
{
|
|
@@ -66,7 +66,7 @@ RCT_EXPORT_METHOD(openCamera:(NSDictionary *)options
|
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
RCT_EXPORT_METHOD(openGallery:(NSDictionary *)options
|
|
69
|
+
RCT_EXPORT_METHOD(openGallery:(nonnull NSDictionary *)options
|
|
70
70
|
resolver:(RCTPromiseResolveBlock)resolve
|
|
71
71
|
rejecter:(RCTPromiseRejectBlock)reject)
|
|
72
72
|
{
|
|
@@ -85,7 +85,7 @@ RCT_EXPORT_METHOD(openGallery:(NSDictionary *)options
|
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
RCT_EXPORT_METHOD(openMultiSelectGallery:(NSDictionary *)options
|
|
88
|
+
RCT_EXPORT_METHOD(openMultiSelectGallery:(nonnull NSDictionary *)options
|
|
89
89
|
resolver:(RCTPromiseResolveBlock)resolve
|
|
90
90
|
rejecter:(RCTPromiseRejectBlock)reject)
|
|
91
91
|
{
|
|
@@ -214,7 +214,7 @@ RCT_EXPORT_METHOD(getPhotoLibraryPermissionStatus:(RCTPromiseResolveBlock)resolv
|
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
216
|
|
|
217
|
-
RCT_EXPORT_METHOD(fetchPhotoLibraryAssets:(NSDictionary *)options
|
|
217
|
+
RCT_EXPORT_METHOD(fetchPhotoLibraryAssets:(nonnull NSDictionary *)options
|
|
218
218
|
resolver:(RCTPromiseResolveBlock)resolve
|
|
219
219
|
rejecter:(RCTPromiseRejectBlock)reject)
|
|
220
220
|
{
|
|
@@ -327,9 +327,9 @@ RCT_EXPORT_METHOD(fetchPhotoLibraryAssets:(NSDictionary *)options
|
|
|
327
327
|
});
|
|
328
328
|
}
|
|
329
329
|
|
|
330
|
-
RCT_EXPORT_METHOD(getImageForAsset:(NSString *)assetId
|
|
331
|
-
targetWidth:(NSNumber *)targetWidth
|
|
332
|
-
targetHeight:(NSNumber *)targetHeight
|
|
330
|
+
RCT_EXPORT_METHOD(getImageForAsset:(nonnull NSString *)assetId
|
|
331
|
+
targetWidth:(nonnull NSNumber *)targetWidth
|
|
332
|
+
targetHeight:(nonnull NSNumber *)targetHeight
|
|
333
333
|
resolver:(RCTPromiseResolveBlock)resolve
|
|
334
334
|
rejecter:(RCTPromiseRejectBlock)reject)
|
|
335
335
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "motorinc-gallery-picker-pro",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "A comprehensive React Native media gallery picker with smooth animations, multi-select, single-select, crop functionality, and native iOS/Android support",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
package/react-native.config.js
CHANGED
|
@@ -3,11 +3,12 @@ module.exports = {
|
|
|
3
3
|
platforms: {
|
|
4
4
|
android: {
|
|
5
5
|
sourceDir: 'android',
|
|
6
|
-
packageImportPath:
|
|
6
|
+
packageImportPath:
|
|
7
|
+
'import com.gallerypicker.imagepicker.ImagePickerPackage;',
|
|
7
8
|
},
|
|
8
9
|
ios: {
|
|
9
10
|
podspecPath: 'motorinc-gallery-picker-pro.podspec',
|
|
10
11
|
},
|
|
11
12
|
},
|
|
12
13
|
},
|
|
13
|
-
};
|
|
14
|
+
};
|