react-native-picture-selector 1.0.18 → 1.0.19

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.
@@ -0,0 +1,34 @@
1
+ //
2
+ // NitroPictureSelectorOnLoad.mm
3
+ // Registers HybridPictureSelector with Nitro's HybridObjectRegistry.
4
+ //
5
+ // The +load method runs automatically when the ObjC runtime loads this class,
6
+ // before main() — guaranteeing the factory is available when JS calls
7
+ // NitroModules.createHybridObject("PictureSelector").
8
+ //
9
+
10
+ #import <Foundation/Foundation.h>
11
+ #import <NitroModules/HybridObjectRegistry.hpp>
12
+ #import "NitroPictureSelector-Swift-Cxx-Umbrella.hpp"
13
+ #import "HybridHybridPictureSelectorSpecSwift.hpp"
14
+
15
+ using namespace margelo::nitro;
16
+ using namespace margelo::pictureselector;
17
+ using namespace margelo::pictureselector::bridge::swift;
18
+
19
+ @interface NitroPictureSelectorOnLoad: NSObject
20
+ @end
21
+
22
+ @implementation NitroPictureSelectorOnLoad
23
+
24
+ + (void)load {
25
+ HybridObjectRegistry::registerHybridObjectConstructor(
26
+ "PictureSelector",
27
+ []() -> std::shared_ptr<HybridObject> {
28
+ auto swiftPart = NitroPictureSelector::HybridPictureSelector();
29
+ return swiftPart.getCxxWrapper().getCxxPart();
30
+ }
31
+ );
32
+ }
33
+
34
+ @end
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-picture-selector",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "description": "High-performance photo/video picker for React Native using Nitro Modules",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",