feat: add react-native-splash-view for customizable native splash screens#1601
Merged
Simek merged 4 commits intoreact-native-community:mainfrom Apr 26, 2025
Merged
feat: add react-native-splash-view for customizable native splash screens#1601Simek merged 4 commits intoreact-native-community:mainfrom
Simek merged 4 commits intoreact-native-community:mainfrom
Conversation
"githubUrl": "https://github.com/jagnesh/react-native-splash-view", "npmPkg": "react-native-splash-view", "android": true, "ios": true,
Simek
reviewed
Apr 26, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Why & How
This PR adds
[react-native-splash-view](https://github.com/jagnesh/react-native-splash-view)to the libraries list.react-native-splash-viewprovides a customizable native splash screen for React Native apps.📦 Installation
Using npm:
Using yarn:
🛠️ Setup Instructions
📱 iOS Setup
1️⃣ Install CocoaPods dependencies:
2️⃣ Ensure
SplashViewis correctly linked.3️⃣ Create a Storyboard (
LaunchScreen.storyboard) in Xcode and set the Storyboard Name toLaunchScreen.4️⃣ Modify
AppDelegateto programmatically show the splash:Swift:
Objective-C:
🤖 Android Setup
1️⃣ Create a
launch_screen.xmlinandroid/app/src/main/res/layout/launch_screen.xml:2️⃣ (Optional) Define a custom theme
SplashViewThemeinstyles.xml:3️⃣ Modify
MainActivity.kt:🚀 Usage
Basic Example:
⚙️ API
showSplash()hideSplash()🐞 Troubleshooting
1️⃣ Cannot find SplashView in Pods (iOS)?
2️⃣ SplashView not found in MainActivity.kt (Android)?
💡 Contributing
Feel free to open issues and pull requests! Contributions are welcome.
✅ Checklist
react-native-libraries.json