react-native-splash-screen icon indicating copy to clipboard operation
react-native-splash-screen copied to clipboard

facing a namespace issue introduced by AGP (Android Gradle Plugin) 8+.

Open CodeCastel7778 opened this issue 7 months ago • 0 comments

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch [email protected] for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-splash-screen/android/build.gradle b/node_modules/react-native-splash-screen/android/build.gradle
index baef1a9..f497d60 100644
--- a/node_modules/react-native-splash-screen/android/build.gradle
+++ b/node_modules/react-native-splash-screen/android/build.gradle
@@ -10,6 +10,7 @@ def DEFAULT_TARGET_SDK_VERSION              = 26
 def DEFAULT_SUPPORT_LIB_VERSION             = "26.1.0"
 
 android {
+    namespace 'org.devio.rn.splashscreen'
     compileSdkVersion rootProject.hasProperty('compileSdkVersion') ? rootProject.compileSdkVersion : DEFAULT_COMPILE_SDK_VERSION
     buildToolsVersion rootProject.hasProperty('buildToolsVersion') ? rootProject.buildToolsVersion : DEFAULT_BUILD_TOOLS_VERSION
 

This issue body was partially generated by patch-package.

CodeCastel7778 avatar Jul 13 '25 12:07 CodeCastel7778