Skip to content

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

Open

Description

@CodeCastel7778

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch react-native-splash-screen@3.3.0 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.

Activity

  1. jagnesh commented on Mar 3, 2026

    @jagnesh

    🚀 Consider Using react-native-splash-view Instead!

    Hey there! 👋 If you're facing issues with AppDelegate changes in React Native 0.76+, you might want to try [react-native-splash-view] instead!

    ✅ Why switch to react-native-splash-view?

    • Fully compatible with React Native 0.76+, including Swift-based AppDelegate.
    • No extra hassle—works smoothly with both Objective-C & Swift projects.
    • Simple integration with iOS storyboard splash screens & Android launch screens.
    • Lightweight & actively maintained for the latest React Native versions.

    Check it out & give it a try! 🚀✨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions