Skip to content

Commit

Permalink
🐛 fix: solved #202 and refactor code
Browse files Browse the repository at this point in the history
  • Loading branch information
baronha committed Dec 20, 2024
1 parent 9cb9854 commit 274acc9
Show file tree
Hide file tree
Showing 7 changed files with 1,743 additions and 2,745 deletions.
1 change: 1 addition & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ android {
"**/libhermes.so",
"**/libhermes-executor-debug.so",
"**/libhermes_executor.so",
"**/libreactnative.so",
"**/libreactnativejni.so",
"**/libturbomodulejsijni.so",
"**/libreact_nativemodule_core.so",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,32 +1,26 @@
package com.margelo.nitro.multipleimagepicker;


import android.util.Log;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.module.model.ReactModuleInfoProvider;
import com.facebook.react.TurboReactPackage;
import com.margelo.nitro.core.HybridObject;
import com.margelo.nitro.core.HybridObjectRegistry;

import java.util.HashMap;
import java.util.function.Supplier;

public class MultipleImagePickerPackage extends TurboReactPackage {
@Nullable
@Override
public NativeModule getModule(String name, ReactApplicationContext reactContext) {
public NativeModule getModule(@NonNull String name, @NonNull ReactApplicationContext reactContext) {
return null;
}

@Override
public ReactModuleInfoProvider getReactModuleInfoProvider() {
return () -> {
return new HashMap<>();
};
return HashMap::new;
}

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package com.margelo.nitro.multipleimagepicker

import android.util.Log
import com.luck.picture.lib.basic.IBridgeLoaderFactory
import com.luck.picture.lib.config.InjectResourceSource
import com.luck.picture.lib.engine.*
import com.luck.picture.lib.engine.CompressEngine
import com.luck.picture.lib.entity.LocalMedia
Expand Down
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"dependencies": {
"@baronha/react-native-image-grid": "^0.2.7",
"@react-native-segmented-control/segmented-control": "2.5.2",
"expo": "~51.0.38",
"expo": "52.0.21",
"expo-build-properties": "^0.12.5",
"expo-status-bar": "~1.12.1",
"expo-system-ui": "~3.0.7",
Expand Down
3,380 changes: 1,154 additions & 2,226 deletions example/yarn.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@baronha/react-native-multiple-image-picker",
"version": "2.1.0",
"version": "2.1.1",
"description": "� react-native-multiple-image-picker enables applications to pick images and videos from multiple smart albums in iOS/Android �",
"main": "./lib/commonjs/index.js",
"module": "./lib/module/index.js",
Expand Down
1,090 changes: 583 additions & 507 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 274acc9

Please sign in to comment.