react-native-smb icon indicating copy to clipboard operation
react-native-smb copied to clipboard

Support latest react-native?

Open geoff8888 opened this issue 3 years ago • 4 comments

Does anyone figure out how to hurdle the gradle and support the latest react-native?

geoff8888 avatar Jan 19 '23 14:01 geoff8888

@geoff8888 I am also using this package recently in [email protected]

Just change node_modules/react-native-smb/android/src/main/java/com/reactlibrarysmbbodaghi/RNSmbModule.java the following 2 imports:

-import android.support.v4.app.ActivityCompat;
-import android.support.v4.content.ContextCompat;
+import androidx.core.app.ActivityCompat;
+import androidx.core.content.ContextCompat;

Patching it currently with patch-package.

greifmatthias avatar Jan 20 '23 17:01 greifmatthias

Thank you very much! You're the best!

geoff8888 avatar Jan 21 '23 06:01 geoff8888

Hi, I sincerely apologize for the delay in addressing this issue. I've been incredibly busy over the past year and just now had the chance to review your comments. Thank you so much, @greifmatthias, for providing the workaround! I'll incorporate this fix into the package and release a new version that supports the latest React Native as soon as possible. I appreciate your patience and support.

bodaghialib4 avatar Sep 02 '24 20:09 bodaghialib4

Hi, I've just released version 0.2.5, which includes the fix for the issue and supports the latest React Native. Please let me know if you run into any problems.

bodaghialib4 avatar Sep 30 '24 22:09 bodaghialib4