Skip to content

Commit 1ec9421

Browse files
author
TomWq
committed
提交代码
1 parent ca05e8d commit 1ec9421

File tree

7 files changed

+31
-22
lines changed

7 files changed

+31
-22
lines changed

.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Screenshots
88
# Xcode
99
#
1010
build/
11+
android/.gradle/
12+
android/.settings/
1113
*.pbxuser
1214
!default.pbxuser
1315
*.mode1v3

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# react-native-splash-screen
1+
# react-native-splash-screen-newarch
22

3-
[![Download](https://img.shields.io/badge/Download-v4.0.0-ff69b4.svg)](https://www.npmjs.com/package/react-native-splash-screen)
3+
[![Download](https://img.shields.io/badge/Download-v4.0.0-ff69b4.svg)](https://www.npmjs.com/package/react-native-splash-screen-newarch)
44
[![License MIT](http://img.shields.io/badge/license-MIT-orange.svg?style=flat)](https://raw.githubusercontent.com/crazycodeboy/react-native-check-box/master/LICENSE)
55

66
A splash screen library for React Native. It lets you show/hide a custom splash view during app initialization on Android and iOS.
77

8-
> This is the upgraded `v4` line of `react-native-splash-screen`, and it only supports React Native New Architecture.
8+
> This is a forked and upgraded `v4` line of `react-native-splash-screen`, published as `react-native-splash-screen-newarch`, and it only supports React Native New Architecture.
99
1010
## Compatibility
1111

12-
- `react-native-splash-screen@4.x`
12+
- `react-native-splash-screen-newarch@4.x`
1313
- React Native `>= 0.84.0`
1414
- New Architecture (TurboModule / Codegen)
1515
- Use `v3.x` for legacy architecture projects: [README-v3.md](./README-v3.md)
@@ -19,15 +19,15 @@ A splash screen library for React Native. It lets you show/hide a custom splash
1919
## Installation
2020

2121
```bash
22-
npm i react-native-splash-screen
22+
npm i react-native-splash-screen-newarch
2323
```
2424

2525
> `4.x` does not require `react-native link` or manual edits to `settings.gradle` / `MainApplication`.
2626
2727
## Usage
2828

2929
```ts
30-
import SplashScreen from 'react-native-splash-screen';
30+
import SplashScreen from 'react-native-splash-screen-newarch';
3131

3232
// Call when app initialization is done
3333
SplashScreen.hide();

README.zh.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# react-native-splash-screen
1+
# react-native-splash-screen-newarch
22

3-
[![Download](https://img.shields.io/badge/Download-v4.0.0-ff69b4.svg)](https://www.npmjs.com/package/react-native-splash-screen)
3+
[![Download](https://img.shields.io/badge/Download-v4.0.0-ff69b4.svg)](https://www.npmjs.com/package/react-native-splash-screen-newarch)
44
[![License MIT](http://img.shields.io/badge/license-MIT-orange.svg?style=flat)](https://raw.githubusercontent.com/crazycodeboy/react-native-check-box/master/LICENSE)
55

66
React Native 启动屏库,用于在应用初始化期间显示/隐藏自定义启动页,支持 Android 与 iOS。
77

8-
> 这是 `react-native-splash-screen``v4` 升级版本,仅支持 React Native 新架构。
8+
> 这是基于 `react-native-splash-screen`fork 升级版 `v4`,发布名为 `react-native-splash-screen-newarch`,仅支持 React Native 新架构。
99
1010
## 兼容性
1111

12-
- `react-native-splash-screen@4.x`
12+
- `react-native-splash-screen-newarch@4.x`
1313
- React Native `>= 0.84.0`
1414
- New Architecture(TurboModule / Codegen)
1515
- 老项目请使用 `v3.x`(旧架构):[README.zh-v3.md](./README.zh-v3.md)
@@ -19,15 +19,15 @@ React Native 启动屏库,用于在应用初始化期间显示/隐藏自定义
1919
## 安装
2020

2121
```bash
22-
npm i react-native-splash-screen
22+
npm i react-native-splash-screen-newarch
2323
```
2424

2525
> `4.x` 不再需要 `react-native link`,也不需要手动修改 `settings.gradle``MainApplication`
2626
2727
## 使用
2828

2929
```ts
30-
import SplashScreen from 'react-native-splash-screen';
30+
import SplashScreen from 'react-native-splash-screen-newarch';
3131

3232
// 在初始化完成后调用
3333
SplashScreen.hide();

examples/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
SafeAreaProvider,
1414
useSafeAreaInsets,
1515
} from 'react-native-safe-area-context';
16-
import SplashScreen from 'react-native-splash-screen';
16+
import SplashScreen from 'react-native-splash-screen-newarch';
1717

1818
function App() {
1919
const isDarkMode = useColorScheme() === 'dark';

examples/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"react-native": "0.84.0",
1515
"@react-native/new-app-screen": "0.84.0",
1616
"react-native-safe-area-context": "^5.5.2",
17-
"react-native-splash-screen": "file:.."
17+
"react-native-splash-screen-newarch": "file:.."
1818
},
1919
"devDependencies": {
2020
"@babel/core": "^7.25.2",

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
declare module "react-native-splash-screen" {
1+
declare module "react-native-splash-screen-newarch" {
22
interface SplashScreenModule {
33
hide(): void;
44
show(): void;

package.json

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "react-native-splash-screen",
3-
"version": "4.0.0",
4-
"description": "A splash screen for react-native, hide when application loaded ,it works on iOS and Android.",
2+
"name": "react-native-splash-screen-newarch",
3+
"version": "1.0.0",
4+
"description": "A New Architecture fork of react-native-splash-screen for React Native >= 0.84.0.",
55
"main": "index.js",
66
"codegenConfig": {
77
"name": "rnsplashscreen",
@@ -16,12 +16,16 @@
1616
},
1717
"repository": {
1818
"type": "git",
19-
"url": "git+https://github.com/crazycodeboy/react-native-splash-screen.git"
19+
"url": "git+https://github.com/TomWq/react-native-splash-screen-newarch.git"
2020
},
2121
"keywords": [
2222
"react-native",
2323
"react-native-component",
2424
"react-native-splash-screen",
25+
"react-native-splash-screen-newarch",
26+
"new-architecture",
27+
"turbomodule",
28+
"codegen",
2529
"splash-screen",
2630
"splashscreen",
2731
"splash",
@@ -30,13 +34,16 @@
3034
"android",
3135
"ios"
3236
],
33-
"author": "crazycodeboy",
37+
"author": "TomWq",
3438
"license": "MIT",
3539
"bugs": {
36-
"url": "https://github.com/crazycodeboy/react-native-splash-screen/issues"
40+
"url": "https://github.com/TomWq/react-native-splash-screen-newarch/issues"
3741
},
3842
"peerDependencies": {
3943
"react-native": ">=0.84.0"
4044
},
41-
"homepage": "https://github.com/crazycodeboy/react-native-splash-screen#readme"
45+
"homepage": "https://github.com/TomWq/react-native-splash-screen-newarch#readme",
46+
"publishConfig": {
47+
"access": "public"
48+
}
4249
}

0 commit comments

Comments
 (0)