crazycodeboy/react-native-splash-screen — 5.7k★ trên GitHub (Java). A splash screen for react-native, hide when application loaded ,it works on iOS and Android.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
A splash screen API for react-native which can programatically hide and show the splash screen. Works on iOS and Android.
Content
Changes
Installation
Examples
Getting started
API
Testing
Troubleshooting
Contribution
Changes
For React Native >= 0.47.0 use v3.+, for React Native < 0.47.0 use v2.1.0
Examples
Examples
Installation
First step(Download):
Run npm i react-native-splash-screen --save
Second step(Plugin Installation):
Automatic installation
react-native link react-native-splash-screen or rnpm link react-native-splash-screen
Manual installation
Android:
In your android/settings.gradle file, make the following additions:
include ':react-native-splash-screen'
project(':react-native-splash-screen').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-splash-screen/android')
In your android/app/build.gradle file, add the :react-native-splash-screen project as a compile-time dependency:
Import react-native-splash-screen in your JS file.
import SplashScreen from 'react-native-splash-screen'
Android:
Create a file called launch_screen.xml in app/src/main/res/layout (create the layout-folder if it doesn't exist). The contents of the file should be the following:
Customize your launch screen by creating a launch_screen.png-file and placing it in an appropriate drawable-folder. Android automatically scales drawable, so you do not necessarily need to provide images for all phone densities.
You can create splash screens in the following folders:
drawable-ldpi
drawable-mdpi
drawable-hdpi
drawable-xhdpi
drawable-xxhdpi
drawable-xxxhdpi
Add a color called primary_dark in app/src/main/res/values/colors.xml
Customize your splash screen via LaunchScreen.storyboard or LaunchScreen.xib。
Learn more to see examples
via LaunchScreen.storyboard Tutorial
Usage
Use like so:
import SplashScreen from 'react-native-splash-screen'
export default class WelcomePage extends Component {
componentDidMount() {
// do stuff while splash screen is shown
// After having done stuff (such as async tasks) hide the splash screen
SplashScreen.hide();
}
}
API
Method
Type
Optional
Description
show()
function
false
Open splash screen (Native Method )
show(final Activity activity, final boolean fullScreen)
function
false
Open splash screen (Native Method )
hide()
function
false
Close splash screen
Testing
Jest
For Jest to work you will need to mock this component. Here is an example:
crazycodeboy/react-native-splash-screen có bao nhiêu sao?
crazycodeboy/react-native-splash-screen có 5.7k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/crazycodeboy/react-native-splash-screen. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
crazycodeboy/react-native-splash-screen có những chủ đề gì?
GitHub topics của crazycodeboy/react-native-splash-screen: "android", "ios", "launchimage", "react-native", "react-native-splashscreen", "splash-screen", "splashscreen". TopGit xếp repo vào nhóm Mobile.
crazycodeboy/react-native-splash-screen còn đang phát triển không?
Commit gần nhất trên crazycodeboy/react-native-splash-screen là 2.3 năm trước (theo timestamp GitHub). Repo có 1.1k fork — một chỉ báo về mức độ quan tâm của cộng đồng.
crazycodeboy/react-native-splash-screen viết bằng ngôn ngữ gì?
crazycodeboy/react-native-splash-screen chủ yếu viết bằng Java. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Cùng nhóm Mobile còn repo nào?
crazycodeboy/react-native-splash-screen thuộc nhóm Mobile trên TopGit, cùng 7 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về crazycodeboy/react-native-splash-screen ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/crazycodeboy/react-native-splash-screen là nguồn chính thức.
Vì sao crazycodeboy/react-native-splash-screen được xếp vào nhóm Mobile?
TopGit xếp crazycodeboy/react-native-splash-screen vào nhóm Mobile dựa trên GitHub topics và mô tả của repo (gắn thẻ: "android", "ios", "launchimage"). Việc phân loại dựa trên metadata thật của repo, không phải đoán theo cảm tính biên tập.
Đọc đầy đủ README ở tab phía trên.
Chưa chắc react-native-splash-screen có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về react-native-splash-screen.