diff --git a/README.md b/README.md
index 1566a25c..f01c33de 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# react-native-splash-screen
-**[![](http://www.devio.org/io/sb/lang/chinese.svg)](https://github.com/crazycodeboy/react-native-splash-screen/blob/master/README.zh.md) | [原理解析](https://github.com/crazycodeboy/RNStudyNotes/blob/master/React%20Native%20%E9%97%AE%E9%A2%98%E5%8F%8A%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88%E5%90%88%E9%9B%86/React%20Native%20%E5%90%AF%E5%8A%A8%E7%99%BD%E5%B1%8F%E9%97%AE%E9%A2%98%E8%A7%A3%E5%86%B3%E6%95%99%E7%A8%8B/React%20Native%20%E5%90%AF%E5%8A%A8%E7%99%BD%E5%B1%8F%E9%97%AE%E9%A2%98%E8%A7%A3%E5%86%B3%E6%95%99%E7%A8%8B.md)**
+**[ ![语言 中文](https://img.shields.io/badge/语言-中文-feb252.svg)](https://github.com/crazycodeboy/GitHubPopular/blob/master/README.zh.md) | [原理解析](https://github.com/crazycodeboy/RNStudyNotes/blob/master/React%20Native%20%E9%97%AE%E9%A2%98%E5%8F%8A%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88%E5%90%88%E9%9B%86/React%20Native%20%E5%90%AF%E5%8A%A8%E7%99%BD%E5%B1%8F%E9%97%AE%E9%A2%98%E8%A7%A3%E5%86%B3%E6%95%99%E7%A8%8B/React%20Native%20%E5%90%AF%E5%8A%A8%E7%99%BD%E5%B1%8F%E9%97%AE%E9%A2%98%E8%A7%A3%E5%86%B3%E6%95%99%E7%A8%8B.md)**
A splash screen for react-native, hide when application loaded ,it works on iOS and Android.
@@ -8,10 +8,22 @@ A splash screen for react-native, hide when application loaded ,it works on iOS
## Content
- [Installation](#installation)
-- [Demo](#demo)
+- [Examples](#examples)
- [Getting started](#getting-started)
- [API](#api)
- [Contribution](#contribution)
+- [Changes](#changes)
+
+## Changes
+React Native>=4.0 to use [v2.+](https://github.com/crazycodeboy/react-native-splash-screen/releases) ,and React Native<4.0 to use [v1.0.9](https://github.com/crazycodeboy/react-native-splash-screen/releases/tag/v1.0.9)
+
+## Examples
+* [Examples](https://github.com/crazycodeboy/react-native-splash-screen/tree/master/examples)
+
+![react-native-splash-screen-Android](https://raw.githubusercontent.com/crazycodeboy/react-native-splash-screen/master/examples/Screenshots/react-native-splash-screen-Android.gif)
+![react-native-splash-screen-iOS](https://raw.githubusercontent.com/crazycodeboy/react-native-splash-screen/master/examples/Screenshots/react-native-splash-screen-iOS.gif)
+
+
## Installation
@@ -76,6 +88,9 @@ public class MainApplication extends Application implements ReactApplication {
1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`
2. Go to `node_modules` ➜ `react-native-splash-screen` and add `SplashScreen.xcodeproj`
3. In XCode, in the project navigator, select your project. Add `libSplashScreen.a` to your project's `Build Phases` ➜ `Link Binary With Libraries`
+4. To fix `'SplashScreen.h' file not found`, you have to select your project → Build Settings → Search Paths → Header Search Paths to add:
+
+ `$(SRCROOT)/../node_modules/react-native-splash-screen/ios`
@@ -125,19 +140,13 @@ You should add following code to AppDelegate.m for keeping launch image:
```
-## Demo
-* [Examples](https://github.com/crazycodeboy/react-native-splash-screen/tree/master/examples)
-
-![react-native-splash-screen-Android](https://raw.githubusercontent.com/crazycodeboy/react-native-splash-screen/master/examples/Screenshots/react-native-splash-screen-Android.gif)
-![react-native-splash-screen-iOS](https://raw.githubusercontent.com/crazycodeboy/react-native-splash-screen/master/examples/Screenshots/react-native-splash-screen-iOS.gif)
-
## Getting started
Import `react-native-splash-screen` in your JS file.
`import SplashScreen from 'react-native-splash-screen'`
-**Android:**
+### Android:
Add a file called launch_screen.xml in the layout as the splash screen.
@@ -149,14 +158,32 @@ Add a file called launch_screen.xml in the layout as the splash screen.
android:background="@drawable/launch_screen">
```
-**Learn more to see [examples](https://github.com/crazycodeboy/react-native-splash-screen/tree/master/examples)**
+
+**Optional steps:**
+
+You can also via the following steps to set the window transparent.
+
+open `android/app/src/main/res/values/styles.xml`, to add `- true
`,like this :
+
+```xml
+
+
+
+
+```
+
+**Learn more to see [Examples](https://github.com/crazycodeboy/react-native-splash-screen/tree/master/Examples)**
-**iOS**
+### iOS
iOS can be used to customize your startup screen via LaunchImage or LaunchScreen.xib.
-**Learn more to see [examples](https://github.com/crazycodeboy/react-native-splash-screen/tree/master/examples)**
+**Learn more to see [Examples](https://github.com/crazycodeboy/react-native-splash-screen/tree/master/examples)**
Then you can use it like this:
diff --git a/README.zh.md b/README.zh.md
index 39aa628c..e5519b9b 100644
--- a/README.zh.md
+++ b/README.zh.md
@@ -1,6 +1,6 @@
# react-native-splash-screen
-**[![](http://www.devio.org/io/sb/lang/english.svg)](https://github.com/crazycodeboy/react-native-splash-screen) | [原理解析](https://github.com/crazycodeboy/RNStudyNotes/blob/master/React%20Native%20%E9%97%AE%E9%A2%98%E5%8F%8A%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88%E5%90%88%E9%9B%86/React%20Native%20%E5%90%AF%E5%8A%A8%E7%99%BD%E5%B1%8F%E9%97%AE%E9%A2%98%E8%A7%A3%E5%86%B3%E6%95%99%E7%A8%8B/React%20Native%20%E5%90%AF%E5%8A%A8%E7%99%BD%E5%B1%8F%E9%97%AE%E9%A2%98%E8%A7%A3%E5%86%B3%E6%95%99%E7%A8%8B.md)**
+**[ ![language English](https://img.shields.io/badge/language-English-feb252.svg)](https://github.com/crazycodeboy/GitHubPopular/) | [原理解析](https://github.com/crazycodeboy/RNStudyNotes/blob/master/React%20Native%20%E9%97%AE%E9%A2%98%E5%8F%8A%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88%E5%90%88%E9%9B%86/React%20Native%20%E5%90%AF%E5%8A%A8%E7%99%BD%E5%B1%8F%E9%97%AE%E9%A2%98%E8%A7%A3%E5%86%B3%E6%95%99%E7%A8%8B/React%20Native%20%E5%90%AF%E5%8A%A8%E7%99%BD%E5%B1%8F%E9%97%AE%E9%A2%98%E8%A7%A3%E5%86%B3%E6%95%99%E7%A8%8B.md)**
React Native启动屏,解决iOS,Android启动白屏问题,支持Android和iOS。
@@ -12,6 +12,19 @@ React Native启动屏,解决iOS,Android启动白屏问题,支持Android和
- [使用说明](#使用说明)
- [API](#api)
- [贡献](#贡献)
+- [改变](#改变)
+
+## 演示
+* [Examples](https://github.com/crazycodeboy/react-native-splash-screen/tree/master/examples)
+
+![react-native-splash-screen-Android](https://raw.githubusercontent.com/crazycodeboy/react-native-splash-screen/master/examples/Screenshots/react-native-splash-screen-Android.gif)
+![react-native-splash-screen-iOS](https://raw.githubusercontent.com/crazycodeboy/react-native-splash-screen/master/examples/Screenshots/react-native-splash-screen-iOS.gif)
+
+
+## 改变
+
+如果你项目的React Native>=4.0请使用[v2.+](https://github.com/crazycodeboy/react-native-splash-screen/releases),
+如果<4.0请使用[v1.0.9](https://github.com/crazycodeboy/react-native-splash-screen/releases/tag/v1.0.9)。
## 安装说明
@@ -85,7 +98,12 @@ public class MainApplication extends Application implements ReactApplication {
2. 将 `SplashScreen.xcodeproj`添加到你的项目中,`node_modules` ➜ `react-native-splash-screen` ➜ `SplashScreen.xcodeproj`
3. 在XCode中打开`Build Phases` ➜ `Link Binary With Libraries`将`libSplashScreen.a` 添加到你的项目中。
+4. 如果在使用过过程中出现 `'SplashScreen.h' file not found`问题,你可以下面的代码添加到Header Search Paths中,步骤如下:
+
+选择你的项目,TARGET → Build Settings → Search Paths → Header Search Paths 添加:
+
+ `$(SRCROOT)/../node_modules/react-native-splash-screen/ios`
### 第三步(配置):
@@ -129,11 +147,6 @@ public class MainActivity extends ReactActivity {
```
-## 演示
-* [Examples](https://github.com/crazycodeboy/react-native-splash-screen/tree/master/examples)
-
-![react-native-splash-screen-Android](https://raw.githubusercontent.com/crazycodeboy/react-native-splash-screen/master/examples/Screenshots/react-native-splash-screen-Android.gif)
-![react-native-splash-screen-iOS](https://raw.githubusercontent.com/crazycodeboy/react-native-splash-screen/master/examples/Screenshots/react-native-splash-screen-iOS.gif)
## 使用说明
@@ -155,6 +168,24 @@ public class MainActivity extends ReactActivity {
```
+**另外:**
+
+你也可以启用app主题透明选项来解决在APP启动时因主题原因导致的短暂白屏的问题,具体步骤如下:
+
+打开 `android/app/src/main/res/values/styles.xml`文件,添加 `- true
`,如下 :
+
+```xml
+
+
+
+
+```
+
+
**更详细的介绍,可以查看 [examples](https://github.com/crazycodeboy/react-native-splash-screen/tree/master/examples)**
**iOS**
diff --git a/android/src/main/java/com/cboy/rn/splashscreen/SplashScreen.java b/android/src/main/java/com/cboy/rn/splashscreen/SplashScreen.java
index bf012def..d7d5425a 100644
--- a/android/src/main/java/com/cboy/rn/splashscreen/SplashScreen.java
+++ b/android/src/main/java/com/cboy/rn/splashscreen/SplashScreen.java
@@ -5,9 +5,11 @@
import java.lang.ref.WeakReference;
/**
* SplashScreen
- * 出自:http://www.cboy.me
+ * 启动屏
+ * from:http://www.devio.org
+ * Author:CrazyCodeBoy
* GitHub:https://github.com/crazycodeboy
- * Eamil:crazycodeboy@gmail.com
+ * Email:crazycodeboy@gmail.com
*/
public class SplashScreen {
private static Dialog mSplashDialog;
diff --git a/android/src/main/java/com/cboy/rn/splashscreen/SplashScreenModule.java b/android/src/main/java/com/cboy/rn/splashscreen/SplashScreenModule.java
index 639e9569..e57197f9 100644
--- a/android/src/main/java/com/cboy/rn/splashscreen/SplashScreenModule.java
+++ b/android/src/main/java/com/cboy/rn/splashscreen/SplashScreenModule.java
@@ -5,10 +5,12 @@
import com.facebook.react.bridge.ReactMethod;
/**
- * SplashScreenModule
- * 出自:http://www.cboy.me
+ * SplashScreen
+ * 启动屏
+ * from:http://www.devio.org
+ * Author:CrazyCodeBoy
* GitHub:https://github.com/crazycodeboy
- * Eamil:crazycodeboy@gmail.com
+ * Email:crazycodeboy@gmail.com
*/
public class SplashScreenModule extends ReactContextBaseJavaModule{
public SplashScreenModule(ReactApplicationContext reactContext) {
diff --git a/android/src/main/java/com/cboy/rn/splashscreen/SplashScreenReactPackage.java b/android/src/main/java/com/cboy/rn/splashscreen/SplashScreenReactPackage.java
index c99a336d..d19c3b56 100644
--- a/android/src/main/java/com/cboy/rn/splashscreen/SplashScreenReactPackage.java
+++ b/android/src/main/java/com/cboy/rn/splashscreen/SplashScreenReactPackage.java
@@ -10,10 +10,12 @@
import java.util.List;
/**
- * SplashScreenReactPackage
- * 出自:http://www.cboy.me
+ * SplashScreen
+ * 启动屏
+ * from:http://www.devio.org
+ * Author:CrazyCodeBoy
* GitHub:https://github.com/crazycodeboy
- * Eamil:crazycodeboy@gmail.com
+ * Email:crazycodeboy@gmail.com
*/
public class SplashScreenReactPackage implements ReactPackage {
diff --git a/examples/.babelrc b/examples/.babelrc
new file mode 100644
index 00000000..8df53fe4
--- /dev/null
+++ b/examples/.babelrc
@@ -0,0 +1,3 @@
+{
+"presets": ["react-native"]
+}
\ No newline at end of file
diff --git a/examples/.flowconfig b/examples/.flowconfig
index 4bea710c..876e701f 100644
--- a/examples/.flowconfig
+++ b/examples/.flowconfig
@@ -1,28 +1,18 @@
[ignore]
-
-# We fork some components by platform.
+; We fork some components by platform
.*/*[.]android.js
-# Ignore templates with `@flow` in header
-.*/local-cli/generator.*
-
-# Ignore malformed json
-.*/node_modules/y18n/test/.*\.json
-
-# Ignore the website subdir
-/website/.*
-
-# Ignore BUCK generated dirs
+; Ignore "BUCK" generated dirs
/\.buckd/
-# Ignore unexpected extra @providesModule
-.*/node_modules/commoner/test/source/widget/share.js
+; Ignore unexpected extra "@providesModule"
+.*/node_modules/.*/node_modules/fbjs/.*
-# Ignore duplicate module providers
-# For RN Apps installed via npm, "Libraries" folder is inside node_modules/react-native but in the source repo it is in the root
+; Ignore duplicate module providers
+; For RN Apps installed via npm, "Libraries" folder is inside
+; "node_modules/react-native" but in the source repo it is in the root
.*/Libraries/react-native/React.js
.*/Libraries/react-native/ReactNative.js
-.*/node_modules/jest-runtime/build/__tests__/.*
[include]
@@ -34,25 +24,21 @@ flow/
[options]
module.system=haste
-esproposal.class_static_fields=enable
-esproposal.class_instance_fields=enable
-
experimental.strict_type_args=true
munge_underscores=true
-module.name_mapper='^image![a-zA-Z0-9$_-]+$' -> 'GlobalImageStub'
module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_type=$FixMe
-suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(30\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
-suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(30\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
+suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-6]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
+suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-6]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
unsafe.enable_getters_and_setters=true
[version]
-^0.30.0
+^0.36.0
diff --git a/examples/.gitattributes b/examples/.gitattributes
new file mode 100644
index 00000000..d42ff183
--- /dev/null
+++ b/examples/.gitattributes
@@ -0,0 +1 @@
+*.pbxproj -text
diff --git a/examples/.gitignore b/examples/.gitignore
index eb1535e4..fc13f169 100644
--- a/examples/.gitignore
+++ b/examples/.gitignore
@@ -22,12 +22,13 @@ DerivedData
*.xcuserstate
project.xcworkspace
-# Android/IJ
+# Android/IntelliJ
#
-*.iml
+build/
.idea
.gradle
local.properties
+*.iml
# node.js
#
@@ -38,4 +39,15 @@ npm-debug.log
buck-out/
\.buckd/
android/app/libs
-android/keystores/debug.keystore
+*.keystore
+
+# fastlane
+#
+# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
+# screenshots whenever they are needed.
+# For more information about the recommended setup visit:
+# https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md
+
+fastlane/report.xml
+fastlane/Preview.html
+fastlane/screenshots
diff --git a/examples/Screenshots/China.png b/examples/Screenshots/China.png
deleted file mode 100644
index 08fca13d..00000000
Binary files a/examples/Screenshots/China.png and /dev/null differ
diff --git a/examples/Screenshots/react-native-splash-screen-Android.gif b/examples/Screenshots/react-native-splash-screen-Android.gif
index aeb69c64..3ff081fe 100644
Binary files a/examples/Screenshots/react-native-splash-screen-Android.gif and b/examples/Screenshots/react-native-splash-screen-Android.gif differ
diff --git a/examples/Screenshots/react-native-splash-screen-iOS.gif b/examples/Screenshots/react-native-splash-screen-iOS.gif
index bb695ada..a038d9f1 100644
Binary files a/examples/Screenshots/react-native-splash-screen-iOS.gif and b/examples/Screenshots/react-native-splash-screen-iOS.gif differ
diff --git a/examples/__tests__/index.android.js b/examples/__tests__/index.android.js
new file mode 100644
index 00000000..b49b9087
--- /dev/null
+++ b/examples/__tests__/index.android.js
@@ -0,0 +1,12 @@
+import 'react-native';
+import React from 'react';
+import Index from '../index.android.js';
+
+// Note: test renderer must be required after react-native.
+import renderer from 'react-test-renderer';
+
+it('renders correctly', () => {
+ const tree = renderer.create(
+
+ );
+});
diff --git a/examples/__tests__/index.ios.js b/examples/__tests__/index.ios.js
new file mode 100644
index 00000000..ba7c5b5e
--- /dev/null
+++ b/examples/__tests__/index.ios.js
@@ -0,0 +1,12 @@
+import 'react-native';
+import React from 'react';
+import Index from '../index.ios.js';
+
+// Note: test renderer must be required after react-native.
+import renderer from 'react-test-renderer';
+
+it('renders correctly', () => {
+ const tree = renderer.create(
+
+ );
+});
diff --git a/examples/android/app/build.gradle b/examples/android/app/build.gradle
index 2f106904..55caeeee 100644
--- a/examples/android/app/build.gradle
+++ b/examples/android/app/build.gradle
@@ -135,6 +135,6 @@ dependencies {
// Run this once to be able to run the application with BUCK
// puts all compile dependencies into folder libs for BUCK to use
task copyDownloadableDepsToLibs(type: Copy) {
- from configurations.compile
- into 'libs'
+ from configurations.compile
+ into 'libs'
}
diff --git a/examples/android/app/src/main/java/com/examples/MainActivity.java b/examples/android/app/src/main/java/com/examples/MainActivity.java
index 40188573..5835721a 100644
--- a/examples/android/app/src/main/java/com/examples/MainActivity.java
+++ b/examples/android/app/src/main/java/com/examples/MainActivity.java
@@ -4,7 +4,14 @@
import com.cboy.rn.splashscreen.SplashScreen;
import com.facebook.react.ReactActivity;
-
+/**
+ * SplashScreen
+ * 启动屏
+ * from:http://www.devio.org
+ * Author:CrazyCodeBoy
+ * GitHub:https://github.com/crazycodeboy
+ * Email:crazycodeboy@gmail.com
+ */
public class MainActivity extends ReactActivity {
/**
@@ -22,4 +29,3 @@ protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}
}
-
diff --git a/examples/android/app/src/main/java/com/examples/MainApplication.java b/examples/android/app/src/main/java/com/examples/MainApplication.java
index 266249ec..6a639750 100644
--- a/examples/android/app/src/main/java/com/examples/MainApplication.java
+++ b/examples/android/app/src/main/java/com/examples/MainApplication.java
@@ -9,29 +9,44 @@
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
import com.facebook.react.shell.MainReactPackage;
+import com.facebook.soloader.SoLoader;
import java.util.Arrays;
import java.util.List;
+/**
+ * SplashScreen
+ * 启动屏
+ * from:http://www.devio.org
+ * Author:CrazyCodeBoy
+ * GitHub:https://github.com/crazycodeboy
+ * Email:crazycodeboy@gmail.com
+ */
public class MainApplication extends Application implements ReactApplication {
- private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
+ private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
+ @Override
+ protected boolean getUseDeveloperSupport() {
+ return BuildConfig.DEBUG;
+ }
+
+ @Override
+ protected List getPackages() {
+ return Arrays.asList(
+ new MainReactPackage(),
+ new SplashScreenReactPackage()
+ );
+ }
+ };
+
@Override
- protected boolean getUseDeveloperSupport() {
- return BuildConfig.DEBUG;
+ public ReactNativeHost getReactNativeHost() {
+ return mReactNativeHost;
}
@Override
- protected List getPackages() {
- return Arrays.asList(
- new MainReactPackage(),
- new SplashScreenReactPackage()
- );
+ public void onCreate() {
+ super.onCreate();
+ SoLoader.init(this, /* native exopackage */ false);
}
- };
-
- @Override
- public ReactNativeHost getReactNativeHost() {
- return mReactNativeHost;
- }
}
diff --git a/examples/android/app/src/main/res/drawable-xhdpi/launch_screen.png b/examples/android/app/src/main/res/drawable-xhdpi/launch_screen.png
index 6bfe1fcd..2c8e7cb5 100644
Binary files a/examples/android/app/src/main/res/drawable-xhdpi/launch_screen.png and b/examples/android/app/src/main/res/drawable-xhdpi/launch_screen.png differ
diff --git a/examples/android/app/src/main/res/drawable-xxhdpi/launch_screen.png b/examples/android/app/src/main/res/drawable-xxhdpi/launch_screen.png
index 453ecf55..f33e070f 100644
Binary files a/examples/android/app/src/main/res/drawable-xxhdpi/launch_screen.png and b/examples/android/app/src/main/res/drawable-xxhdpi/launch_screen.png differ
diff --git a/examples/android/app/src/main/res/layout/launch_screen.xml b/examples/android/app/src/main/res/layout/launch_screen.xml
old mode 100644
new mode 100755
diff --git a/examples/android/build.gradle b/examples/android/build.gradle
index c8978a98..f3bd7d31 100644
--- a/examples/android/build.gradle
+++ b/examples/android/build.gradle
@@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
- classpath 'com.android.tools.build:gradle:2.1.3'
+ classpath 'com.android.tools.build:gradle:2.2.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
diff --git a/examples/android/gradle/wrapper/gradle-wrapper.properties b/examples/android/gradle/wrapper/gradle-wrapper.properties
index 7c09254c..cd8240a0 100644
--- a/examples/android/gradle/wrapper/gradle-wrapper.properties
+++ b/examples/android/gradle/wrapper/gradle-wrapper.properties
@@ -1,4 +1,4 @@
-#Mon Sep 19 13:54:35 CST 2016
+#Mon Jan 16 16:48:23 CST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
diff --git a/examples/android/settings.gradle b/examples/android/settings.gradle
index ad28302a..b8b5f823 100644
--- a/examples/android/settings.gradle
+++ b/examples/android/settings.gradle
@@ -1,5 +1,5 @@
rootProject.name = 'examples'
-
-include ':app'
include ':react-native-splash-screen'
project(':react-native-splash-screen').projectDir = new File(rootProject.projectDir, '../../android')
+
+include ':app'
diff --git a/examples/index.android.js b/examples/index.android.js
index d340028b..fb0c440e 100644
--- a/examples/index.android.js
+++ b/examples/index.android.js
@@ -1,11 +1,12 @@
/**
* SplashScreen
* 启动屏
- * 出自:http://www.cboy.me
+ * from:http://www.devio.org
+ * Author:CrazyCodeBoy
* GitHub:https://github.com/crazycodeboy
- * Eamil:crazycodeboy@gmail.com
+ * Email:crazycodeboy@gmail.com
* @flow
- * */
+ */
import {
AppRegistry,
diff --git a/examples/index.ios.js b/examples/index.ios.js
index d340028b..fb0c440e 100644
--- a/examples/index.ios.js
+++ b/examples/index.ios.js
@@ -1,11 +1,12 @@
/**
* SplashScreen
* 启动屏
- * 出自:http://www.cboy.me
+ * from:http://www.devio.org
+ * Author:CrazyCodeBoy
* GitHub:https://github.com/crazycodeboy
- * Eamil:crazycodeboy@gmail.com
+ * Email:crazycodeboy@gmail.com
* @flow
- * */
+ */
import {
AppRegistry,
diff --git a/examples/index.js b/examples/index.js
index c2e73ba4..b21a261b 100644
--- a/examples/index.js
+++ b/examples/index.js
@@ -1,11 +1,12 @@
/**
* SplashScreen
* 启动屏
- * 出自:http://www.cboy.me
+ * from:http://www.devio.org
+ * Author:CrazyCodeBoy
* GitHub:https://github.com/crazycodeboy
- * Eamil:crazycodeboy@gmail.com
+ * Email:crazycodeboy@gmail.com
* @flow
- * */
+ */
'use strict';
@@ -31,7 +32,7 @@ export default class example extends Component {
{
- Linking.openURL('http://www.cboy.me');
+ Linking.openURL('http://www.devio.org/');
}}
>
@@ -39,13 +40,13 @@ export default class example extends Component {
SplashScreen 启动屏
- @:http://www.cboy.me
+ @:http://www.devio.org/
GitHub:https://github.com/crazycodeboy
- Eamil:crazycodeboy@gmail.com
+ Email:crazycodeboy@gmail.com
diff --git a/examples/ios/examples.xcodeproj/project.pbxproj b/examples/ios/examples.xcodeproj/project.pbxproj
index d60ba856..f2480be8 100644
--- a/examples/ios/examples.xcodeproj/project.pbxproj
+++ b/examples/ios/examples.xcodeproj/project.pbxproj
@@ -22,7 +22,8 @@
13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; };
146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; };
- 79A1396A5AEF42DB950ABF48 /* libSplashScreen.a in Frameworks */ = {isa = PBXBuildFile; fileRef = F190543277374C4BB5D2A3FC /* libSplashScreen.a */; };
+ 3DD03A201E2CCD1000FBDD00 /* libSplashScreen.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DD03A1F1E2CCD0400FBDD00 /* libSplashScreen.a */; };
+ 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; };
832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; };
/* End PBXBuildFile section */
@@ -90,13 +91,118 @@
remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192;
remoteInfo = React;
};
- 3D7682F91D8E872D0014119E /* PBXContainerItemProxy */ = {
+ 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
- containerPortal = FDD9516A6B2848D48CF29133 /* SplashScreen.xcodeproj */;
+ containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 2D2A283A1D9B042B00D4039D;
+ remoteInfo = "RCTImage-tvOS";
+ };
+ 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 2D2A28471D9B043800D4039D;
+ remoteInfo = "RCTLinking-tvOS";
+ };
+ 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 2D2A28541D9B044C00D4039D;
+ remoteInfo = "RCTNetwork-tvOS";
+ };
+ 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 2D2A28611D9B046600D4039D;
+ remoteInfo = "RCTSettings-tvOS";
+ };
+ 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 2D2A287B1D9B048500D4039D;
+ remoteInfo = "RCTText-tvOS";
+ };
+ 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 2D2A28881D9B049200D4039D;
+ remoteInfo = "RCTWebSocket-tvOS";
+ };
+ 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 2D2A28131D9B038B00D4039D;
+ remoteInfo = "React-tvOS";
+ };
+ 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 3D3C059A1DE3340900C268FA;
+ remoteInfo = yoga;
+ };
+ 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 3D3C06751DE3340C00C268FA;
+ remoteInfo = "yoga-tvOS";
+ };
+ 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4;
+ remoteInfo = cxxreact;
+ };
+ 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4;
+ remoteInfo = "cxxreact-tvOS";
+ };
+ 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 3D3CD90B1DE5FBD600167DC4;
+ remoteInfo = jschelpers;
+ };
+ 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 3D3CD9181DE5FBD800167DC4;
+ remoteInfo = "jschelpers-tvOS";
+ };
+ 3DD03A1E1E2CCD0400FBDD00 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 3DD03A1A1E2CCD0400FBDD00 /* SplashScreen.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = 3D7682761D8E76B80014119E;
remoteInfo = SplashScreen;
};
+ 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 134814201AA4EA6300B7C361;
+ remoteInfo = RCTAnimation;
+ };
+ 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = 2D2A28201D9B03D100D4039D;
+ remoteInfo = "RCTAnimation-tvOS";
+ };
78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
@@ -133,10 +239,10 @@
13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = examples/Info.plist; sourceTree = ""; };
13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = examples/main.m; sourceTree = ""; };
146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; };
+ 3DD03A1A1E2CCD0400FBDD00 /* SplashScreen.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = SplashScreen.xcodeproj; path = ../../ios/SplashScreen.xcodeproj; sourceTree = ""; };
+ 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; };
78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; };
832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; };
- F190543277374C4BB5D2A3FC /* libSplashScreen.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libSplashScreen.a; sourceTree = ""; };
- FDD9516A6B2848D48CF29133 /* SplashScreen.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = SplashScreen.xcodeproj; path = "../node_modules/react-native-splash-screen/ios/SplashScreen.xcodeproj"; sourceTree = ""; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@@ -152,6 +258,8 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 3DD03A201E2CCD1000FBDD00 /* libSplashScreen.a in Frameworks */,
+ 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */,
146834051AC3E58100842450 /* libReact.a in Frameworks */,
00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */,
00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */,
@@ -162,7 +270,6 @@
832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */,
00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */,
139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */,
- 79A1396A5AEF42DB950ABF48 /* libSplashScreen.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -189,6 +296,7 @@
isa = PBXGroup;
children = (
00C302C01ABCB91800DB3ED1 /* libRCTImage.a */,
+ 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */,
);
name = Products;
sourceTree = "";
@@ -197,6 +305,7 @@
isa = PBXGroup;
children = (
00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */,
+ 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */,
);
name = Products;
sourceTree = "";
@@ -230,6 +339,7 @@
isa = PBXGroup;
children = (
139105C11AF99BAD00B5F7CC /* libRCTSettings.a */,
+ 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */,
);
name = Products;
sourceTree = "";
@@ -238,6 +348,7 @@
isa = PBXGroup;
children = (
139FDEF41B06529B00C62182 /* libRCTWebSocket.a */,
+ 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */,
);
name = Products;
sourceTree = "";
@@ -260,14 +371,30 @@
isa = PBXGroup;
children = (
146834041AC3E56700842450 /* libReact.a */,
+ 3DAD3EA31DF850E9000B6D8A /* libReact.a */,
+ 3DAD3EA51DF850E9000B6D8A /* libyoga.a */,
+ 3DAD3EA71DF850E9000B6D8A /* libyoga.a */,
+ 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */,
+ 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */,
+ 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */,
+ 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */,
);
name = Products;
sourceTree = "";
};
- 3D7682EC1D8E872D0014119E /* Products */ = {
+ 3DD03A1B1E2CCD0400FBDD00 /* Products */ = {
isa = PBXGroup;
children = (
- 3D7682FA1D8E872D0014119E /* libSplashScreen.a */,
+ 3DD03A1F1E2CCD0400FBDD00 /* libSplashScreen.a */,
+ );
+ name = Products;
+ sourceTree = "";
+ };
+ 5E91572E1DD0AC6500FF2AA8 /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */,
+ 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation-tvOS.a */,
);
name = Products;
sourceTree = "";
@@ -276,6 +403,7 @@
isa = PBXGroup;
children = (
78C398B91ACF4ADC00677621 /* libRCTLinking.a */,
+ 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */,
);
name = Products;
sourceTree = "";
@@ -283,6 +411,8 @@
832341AE1AAA6A7D00B99B32 /* Libraries */ = {
isa = PBXGroup;
children = (
+ 3DD03A1A1E2CCD0400FBDD00 /* SplashScreen.xcodeproj */,
+ 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */,
146833FF1AC3E56700842450 /* React.xcodeproj */,
00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */,
00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */,
@@ -293,7 +423,6 @@
832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */,
00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */,
139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */,
- FDD9516A6B2848D48CF29133 /* SplashScreen.xcodeproj */,
);
name = Libraries;
sourceTree = "";
@@ -302,6 +431,7 @@
isa = PBXGroup;
children = (
832341B51AAA6A8300B99B32 /* libRCTText.a */,
+ 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */,
);
name = Products;
sourceTree = "";
@@ -379,6 +509,9 @@
CreatedOnToolsVersion = 6.2;
TestTargetID = 13B07F861A680F5B00A75B9A;
};
+ 13B07F861A680F5B00A75B9A = {
+ DevelopmentTeam = YH926WFY68;
+ };
};
};
buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "examples" */;
@@ -397,6 +530,10 @@
ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */;
ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */;
},
+ {
+ ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */;
+ ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */;
+ },
{
ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */;
ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */;
@@ -434,8 +571,8 @@
ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */;
},
{
- ProductGroup = 3D7682EC1D8E872D0014119E /* Products */;
- ProjectRef = FDD9516A6B2848D48CF29133 /* SplashScreen.xcodeproj */;
+ ProductGroup = 3DD03A1B1E2CCD0400FBDD00 /* Products */;
+ ProjectRef = 3DD03A1A1E2CCD0400FBDD00 /* SplashScreen.xcodeproj */;
},
);
projectRoot = "";
@@ -503,11 +640,116 @@
remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
- 3D7682FA1D8E872D0014119E /* libSplashScreen.a */ = {
+ 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = "libRCTImage-tvOS.a";
+ remoteRef = 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = "libRCTLinking-tvOS.a";
+ remoteRef = 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = "libRCTNetwork-tvOS.a";
+ remoteRef = 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = "libRCTSettings-tvOS.a";
+ remoteRef = 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = "libRCTText-tvOS.a";
+ remoteRef = 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = "libRCTWebSocket-tvOS.a";
+ remoteRef = 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 3DAD3EA31DF850E9000B6D8A /* libReact.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libReact.a;
+ remoteRef = 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 3DAD3EA51DF850E9000B6D8A /* libyoga.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libyoga.a;
+ remoteRef = 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 3DAD3EA71DF850E9000B6D8A /* libyoga.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libyoga.a;
+ remoteRef = 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libcxxreact.a;
+ remoteRef = 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libcxxreact.a;
+ remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libjschelpers.a;
+ remoteRef = 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libjschelpers.a;
+ remoteRef = 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 3DD03A1F1E2CCD0400FBDD00 /* libSplashScreen.a */ = {
isa = PBXReferenceProxy;
fileType = archive.ar;
path = libSplashScreen.a;
- remoteRef = 3D7682F91D8E872D0014119E /* PBXContainerItemProxy */;
+ remoteRef = 3DD03A1E1E2CCD0400FBDD00 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = libRCTAnimation.a;
+ remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+ 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation-tvOS.a */ = {
+ isa = PBXReferenceProxy;
+ fileType = archive.ar;
+ path = "libRCTAnimation-tvOS.a";
+ remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = {
@@ -612,7 +854,7 @@
"$(inherited)",
);
INFOPLIST_FILE = examplesTests/Info.plist;
- IPHONEOS_DEPLOYMENT_TARGET = 8.2;
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
@@ -629,7 +871,7 @@
BUNDLE_LOADER = "$(TEST_HOST)";
COPY_PHASE_STRIP = NO;
INFOPLIST_FILE = examplesTests/Info.plist;
- IPHONEOS_DEPLOYMENT_TARGET = 8.2;
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
@@ -645,13 +887,10 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
+ CURRENT_PROJECT_VERSION = 1;
DEAD_CODE_STRIPPING = NO;
- HEADER_SEARCH_PATHS = (
- "$(inherited)",
- /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
- "$(SRCROOT)/../node_modules/react-native/React/**",
- "$(SRCROOT)/../node_modules/react-native-splash-screen/ios",
- );
+ DEVELOPMENT_TEAM = YH926WFY68;
+ HEADER_SEARCH_PATHS = "$(SRCROOT)/../node_modules/react-native-splash-screen/ios";
INFOPLIST_FILE = examples/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
OTHER_LDFLAGS = (
@@ -660,6 +899,7 @@
"-lc++",
);
PRODUCT_NAME = examples;
+ VERSIONING_SYSTEM = "apple-generic";
};
name = Debug;
};
@@ -668,12 +908,9 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
- HEADER_SEARCH_PATHS = (
- "$(inherited)",
- /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
- "$(SRCROOT)/../node_modules/react-native/React/**",
- "$(SRCROOT)/../node_modules/react-native-splash-screen/ios",
- );
+ CURRENT_PROJECT_VERSION = 1;
+ DEVELOPMENT_TEAM = YH926WFY68;
+ HEADER_SEARCH_PATHS = "$(SRCROOT)/../node_modules/react-native-splash-screen/ios";
INFOPLIST_FILE = examples/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
OTHER_LDFLAGS = (
@@ -682,6 +919,7 @@
"-lc++",
);
PRODUCT_NAME = examples;
+ VERSIONING_SYSTEM = "apple-generic";
};
name = Release;
};
@@ -719,13 +957,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "$(inherited)",
- /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
- "$(SRCROOT)/../node_modules/react-native/React/**",
- "$(SRCROOT)/../node_modules/react-native-splash-screen/ios",
- );
- IPHONEOS_DEPLOYMENT_TARGET = 7.0;
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
@@ -760,13 +992,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "$(inherited)",
- /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
- "$(SRCROOT)/../node_modules/react-native/React/**",
- "$(SRCROOT)/../node_modules/react-native-splash-screen/ios",
- );
- IPHONEOS_DEPLOYMENT_TARGET = 7.0;
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
VALIDATE_PRODUCT = YES;
diff --git a/examples/ios/examples.xcodeproj/xcshareddata/xcschemes/examples.xcscheme b/examples/ios/examples.xcodeproj/xcshareddata/xcschemes/examples.xcscheme
index 29e56c98..1b04a64e 100644
--- a/examples/ios/examples.xcodeproj/xcshareddata/xcschemes/examples.xcscheme
+++ b/examples/ios/examples.xcodeproj/xcshareddata/xcschemes/examples.xcscheme
@@ -3,9 +3,23 @@
LastUpgradeVersion = "0620"
version = "1.3">
+
+
+
+
+ shouldUseLaunchSchemeArgsEnv = "YES">
@@ -62,15 +76,18 @@
ReferencedContainer = "container:examples.xcodeproj">
+
+
@@ -86,10 +103,10 @@
diff --git a/examples/ios/examples/AppDelegate.h b/examples/ios/examples/AppDelegate.h
index a9654d5e..ae4248f1 100644
--- a/examples/ios/examples/AppDelegate.h
+++ b/examples/ios/examples/AppDelegate.h
@@ -1,12 +1,13 @@
/**
- * Copyright (c) 2015-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
+ * SplashScreen
+ * 启动屏
+ * from:http://www.devio.org
+ * Author:CrazyCodeBoy
+ * GitHub:https://github.com/crazycodeboy
+ * Email:crazycodeboy@gmail.com
*/
+
#import
@interface AppDelegate : UIResponder
diff --git a/examples/ios/examples/AppDelegate.m b/examples/ios/examples/AppDelegate.m
index 38116baf..a0e871f0 100644
--- a/examples/ios/examples/AppDelegate.m
+++ b/examples/ios/examples/AppDelegate.m
@@ -1,17 +1,17 @@
/**
- * Copyright (c) 2015-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
+ * SplashScreen
+ * 启动屏
+ * from:http://www.devio.org
+ * Author:CrazyCodeBoy
+ * GitHub:https://github.com/crazycodeboy
+ * Email:crazycodeboy@gmail.com
*/
#import "AppDelegate.h"
-#import "RCTBundleURLProvider.h"
-#import "RCTRootView.h"
-#import "SplashScreen.h"
+#import
+#import
+#import "SplashScreen.h"
@implementation AppDelegate
@@ -32,7 +32,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
rootViewController.view = rootView;
self.window.rootViewController = rootViewController;
[self.window makeKeyAndVisible];
- [SplashScreen show];
+ [SplashScreen show]; //show splash screen
return YES;
}
diff --git a/examples/ios/examples/Base.lproj/LaunchScreen.xib b/examples/ios/examples/Base.lproj/LaunchScreen.xib
index cddbc50c..e4d8318e 100644
--- a/examples/ios/examples/Base.lproj/LaunchScreen.xib
+++ b/examples/ios/examples/Base.lproj/LaunchScreen.xib
@@ -1,9 +1,13 @@
-
-
+
+
+
+
+
-
+
+
@@ -25,7 +29,7 @@
-
+
diff --git a/examples/ios/examples/Images.xcassets/AppIcon.appiconset/Contents.json b/examples/ios/examples/Images.xcassets/AppIcon.appiconset/Contents.json
index 118c98f7..b8236c65 100644
--- a/examples/ios/examples/Images.xcassets/AppIcon.appiconset/Contents.json
+++ b/examples/ios/examples/Images.xcassets/AppIcon.appiconset/Contents.json
@@ -1,5 +1,15 @@
{
"images" : [
+ {
+ "idiom" : "iphone",
+ "size" : "20x20",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "iphone",
+ "size" : "20x20",
+ "scale" : "3x"
+ },
{
"idiom" : "iphone",
"size" : "29x29",
diff --git a/examples/ios/examples/Images.xcassets/LaunchImage.launchimage/Contents.json b/examples/ios/examples/Images.xcassets/LaunchImage.launchimage/Contents.json
index 6003d91f..6654401d 100644
--- a/examples/ios/examples/Images.xcassets/LaunchImage.launchimage/Contents.json
+++ b/examples/ios/examples/Images.xcassets/LaunchImage.launchimage/Contents.json
@@ -1,5 +1,26 @@
{
"images" : [
+ {
+ "orientation" : "portrait",
+ "idiom" : "iphone",
+ "extent" : "full-screen",
+ "scale" : "1x"
+ },
+ {
+ "orientation" : "portrait",
+ "idiom" : "iphone",
+ "filename" : "LaunchScreen640x960-1.png",
+ "extent" : "full-screen",
+ "scale" : "2x"
+ },
+ {
+ "orientation" : "portrait",
+ "idiom" : "iphone",
+ "filename" : "LaunchScreen640 × 1136-1.png",
+ "extent" : "full-screen",
+ "subtype" : "retina4",
+ "scale" : "2x"
+ },
{
"extent" : "full-screen",
"idiom" : "iphone",
@@ -21,7 +42,7 @@
"extent" : "full-screen",
"idiom" : "iphone",
"subtype" : "667h",
- "filename" : "LaunchScreen750x1334-1.png",
+ "filename" : "LaunchScreen750x1334.png",
"minimum-system-version" : "8.0",
"orientation" : "portrait",
"scale" : "2x"
@@ -29,7 +50,7 @@
{
"orientation" : "portrait",
"idiom" : "iphone",
- "filename" : "LaunchScreen_640_960.png",
+ "filename" : "LaunchScreen640x960.png",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "2x"
@@ -38,31 +59,10 @@
"extent" : "full-screen",
"idiom" : "iphone",
"subtype" : "retina4",
- "filename" : "LaunchScreen-1.png",
+ "filename" : "LaunchScreen640 × 1136.png",
"minimum-system-version" : "7.0",
"orientation" : "portrait",
"scale" : "2x"
- },
- {
- "orientation" : "portrait",
- "idiom" : "iphone",
- "extent" : "full-screen",
- "scale" : "1x"
- },
- {
- "orientation" : "portrait",
- "idiom" : "iphone",
- "filename" : "LaunchScreen_640_960-1.png",
- "extent" : "full-screen",
- "scale" : "2x"
- },
- {
- "orientation" : "portrait",
- "idiom" : "iphone",
- "filename" : "LaunchScreen-2.png",
- "extent" : "full-screen",
- "subtype" : "retina4",
- "scale" : "2x"
}
],
"info" : {
diff --git a/examples/ios/examples/Images.xcassets/LaunchImage.launchimage/LaunchScreen-1.png b/examples/ios/examples/Images.xcassets/LaunchImage.launchimage/LaunchScreen-1.png
deleted file mode 100644
index 2bf87252..00000000
Binary files a/examples/ios/examples/Images.xcassets/LaunchImage.launchimage/LaunchScreen-1.png and /dev/null differ
diff --git a/examples/ios/examples/Images.xcassets/LaunchImage.launchimage/LaunchScreen-2.png b/examples/ios/examples/Images.xcassets/LaunchImage.launchimage/LaunchScreen-2.png
deleted file mode 100644
index 2bf87252..00000000
Binary files a/examples/ios/examples/Images.xcassets/LaunchImage.launchimage/LaunchScreen-2.png and /dev/null differ
diff --git a/examples/ios/examples/Images.xcassets/LaunchImage.launchimage/LaunchScreen1242x2208.png b/examples/ios/examples/Images.xcassets/LaunchImage.launchimage/LaunchScreen1242x2208.png
index 453ecf55..f33e070f 100644
Binary files a/examples/ios/examples/Images.xcassets/LaunchImage.launchimage/LaunchScreen1242x2208.png and b/examples/ios/examples/Images.xcassets/LaunchImage.launchimage/LaunchScreen1242x2208.png differ
diff --git a/examples/ios/examples/Images.xcassets/LaunchImage.launchimage/LaunchScreen640x960-1.png b/examples/ios/examples/Images.xcassets/LaunchImage.launchimage/LaunchScreen640x960-1.png
new file mode 100644
index 00000000..7ce5a8b0
Binary files /dev/null and b/examples/ios/examples/Images.xcassets/LaunchImage.launchimage/LaunchScreen640x960-1.png differ
diff --git a/examples/ios/examples/Images.xcassets/LaunchImage.launchimage/LaunchScreen640x960.png b/examples/ios/examples/Images.xcassets/LaunchImage.launchimage/LaunchScreen640x960.png
new file mode 100644
index 00000000..7ce5a8b0
Binary files /dev/null and b/examples/ios/examples/Images.xcassets/LaunchImage.launchimage/LaunchScreen640x960.png differ
diff --git "a/examples/ios/examples/Images.xcassets/LaunchImage.launchimage/LaunchScreen640\342\200\206\303\227\342\200\2061136-1.png" "b/examples/ios/examples/Images.xcassets/LaunchImage.launchimage/LaunchScreen640\342\200\206\303\227\342\200\2061136-1.png"
new file mode 100644
index 00000000..428e0f18
Binary files /dev/null and "b/examples/ios/examples/Images.xcassets/LaunchImage.launchimage/LaunchScreen640\342\200\206\303\227\342\200\2061136-1.png" differ
diff --git "a/examples/ios/examples/Images.xcassets/LaunchImage.launchimage/LaunchScreen640\342\200\206\303\227\342\200\2061136.png" "b/examples/ios/examples/Images.xcassets/LaunchImage.launchimage/LaunchScreen640\342\200\206\303\227\342\200\2061136.png"
new file mode 100644
index 00000000..428e0f18
Binary files /dev/null and "b/examples/ios/examples/Images.xcassets/LaunchImage.launchimage/LaunchScreen640\342\200\206\303\227\342\200\2061136.png" differ
diff --git a/examples/ios/examples/Images.xcassets/LaunchImage.launchimage/LaunchScreen750x1334-1.png b/examples/ios/examples/Images.xcassets/LaunchImage.launchimage/LaunchScreen750x1334-1.png
deleted file mode 100644
index 6bfe1fcd..00000000
Binary files a/examples/ios/examples/Images.xcassets/LaunchImage.launchimage/LaunchScreen750x1334-1.png and /dev/null differ
diff --git a/examples/ios/examples/Images.xcassets/LaunchImage.launchimage/LaunchScreen750x1334.png b/examples/ios/examples/Images.xcassets/LaunchImage.launchimage/LaunchScreen750x1334.png
new file mode 100644
index 00000000..2c8e7cb5
Binary files /dev/null and b/examples/ios/examples/Images.xcassets/LaunchImage.launchimage/LaunchScreen750x1334.png differ
diff --git a/examples/ios/examples/Images.xcassets/LaunchImage.launchimage/LaunchScreen_640_960-1.png b/examples/ios/examples/Images.xcassets/LaunchImage.launchimage/LaunchScreen_640_960-1.png
deleted file mode 100644
index 71551373..00000000
Binary files a/examples/ios/examples/Images.xcassets/LaunchImage.launchimage/LaunchScreen_640_960-1.png and /dev/null differ
diff --git a/examples/ios/examples/Images.xcassets/LaunchImage.launchimage/LaunchScreen_640_960.png b/examples/ios/examples/Images.xcassets/LaunchImage.launchimage/LaunchScreen_640_960.png
deleted file mode 100644
index 71551373..00000000
Binary files a/examples/ios/examples/Images.xcassets/LaunchImage.launchimage/LaunchScreen_640_960.png and /dev/null differ
diff --git a/examples/ios/examples/Info.plist b/examples/ios/examples/Info.plist
index 2477260d..5d0b252f 100644
--- a/examples/ios/examples/Info.plist
+++ b/examples/ios/examples/Info.plist
@@ -28,7 +28,7 @@
localhost
- NSTemporaryExceptionAllowsInsecureHTTPLoads
+ NSExceptionAllowsInsecureHTTPLoads
diff --git a/examples/ios/examplesTests/examplesTests.m b/examples/ios/examplesTests/examplesTests.m
index 33ad009c..d5759362 100644
--- a/examples/ios/examplesTests/examplesTests.m
+++ b/examples/ios/examplesTests/examplesTests.m
@@ -10,8 +10,8 @@
#import
#import
-#import "RCTLog.h"
-#import "RCTRootView.h"
+#import
+#import
#define TIMEOUT_SECONDS 600
#define TEXT_TO_LOOK_FOR @"Welcome to React Native!"
diff --git a/examples/keys.json b/examples/keys.json
deleted file mode 100755
index 91373b44..00000000
--- a/examples/keys.json
+++ /dev/null
@@ -1,43 +0,0 @@
-[
- {
- "path": "stars:>1",
- "name": "ALL",
- "short_name": "ALL",
- "checked": true
- },
- {
- "path": "Android",
- "name": "Android",
- "checked": true
- },
- {
- "path": "iOS",
- "name": "iOS",
- "checked": true
- },
- {
- "path": "react-native",
- "name": "React Native",
- "checked": false
- },
- {
- "path": "MySQL",
- "name": "MySQL",
- "checked": false
- },
- {
- "path": " AngularJS",
- "name": " AngularJS",
- "checked": false
- },
- {
- "path": " jQuery",
- "name": " jQuery",
- "checked": false
- },
- {
- "path": " react",
- "name": " React",
- "checked": false
- }
-]
\ No newline at end of file
diff --git a/examples/package.json b/examples/package.json
index 4ab16343..6958deb2 100644
--- a/examples/package.json
+++ b/examples/package.json
@@ -3,11 +3,21 @@
"version": "0.0.1",
"private": true,
"scripts": {
- "start": "node node_modules/react-native/local-cli/cli.js start"
+ "start": "node node_modules/react-native/local-cli/cli.js start",
+ "test": "jest"
},
"dependencies": {
- "react": "15.3.1",
- "react-native": "0.32.0",
- "react-native-splash-screen": "^1.0.5"
+ "react": "15.4.2",
+ "react-native": "0.40.0",
+ "react-native-splash-screen": "^1.0.9"
+ },
+ "devDependencies": {
+ "babel-jest": "18.0.0",
+ "babel-preset-react-native": "1.9.1",
+ "jest": "18.1.0",
+ "react-test-renderer": "15.4.2"
+ },
+ "jest": {
+ "preset": "react-native"
}
}
diff --git a/index.js b/index.js
index caa29c19..ef4795a2 100755
--- a/index.js
+++ b/index.js
@@ -1,9 +1,10 @@
/**
* SplashScreen
* 启动屏
- * 出自:http://www.cboy.me
+ * from:http://www.devio.org
+ * Author:CrazyCodeBoy
* GitHub:https://github.com/crazycodeboy
- * Eamil:crazycodeboy@gmail.com
+ * Email:crazycodeboy@gmail.com
* @flow
*/
'use strict';
diff --git a/ios/SplashScreen.h b/ios/SplashScreen.h
index cf9df8c3..923a1d5d 100644
--- a/ios/SplashScreen.h
+++ b/ios/SplashScreen.h
@@ -1,13 +1,14 @@
-//
-// SplashScreen.h
-// SplashScreen
-// 出自:http://www.cboy.me
-// GitHub:https://github.com/crazycodeboy
-// Eamil:crazycodeboy@gmail.com
-
-
-#import "RCTBridgeModule.h"
+/**
+ * SplashScreen
+ * 启动屏
+ * from:http://www.devio.org
+ * Author:CrazyCodeBoy
+ * GitHub:https://github.com/crazycodeboy
+ * Email:crazycodeboy@gmail.com
+ */
+#import
+//#import "RCTBridgeModule.h"
@interface SplashScreen : NSObject
+ (void)show;
-@end
\ No newline at end of file
+@end
diff --git a/ios/SplashScreen.m b/ios/SplashScreen.m
index 23afab6b..d7e0a3b6 100644
--- a/ios/SplashScreen.m
+++ b/ios/SplashScreen.m
@@ -1,7 +1,11 @@
-// SplashScreen
-// 出自:http://www.cboy.me
-// GitHub:https://github.com/crazycodeboy
-// Eamil:crazycodeboy@gmail.com
+/**
+ * SplashScreen
+ * 启动屏
+ * from:http://www.devio.org
+ * Author:CrazyCodeBoy
+ * GitHub:https://github.com/crazycodeboy
+ * Email:crazycodeboy@gmail.com
+ */
#import "SplashScreen.h"
diff --git a/ios/SplashScreen.xcodeproj/project.pbxproj b/ios/SplashScreen.xcodeproj/project.pbxproj
old mode 100644
new mode 100755
index ba1447c6..69c9c5ba
--- a/ios/SplashScreen.xcodeproj/project.pbxproj
+++ b/ios/SplashScreen.xcodeproj/project.pbxproj
@@ -205,12 +205,7 @@
3D7682801D8E76B80014119E /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
- HEADER_SEARCH_PATHS = (
- "$(inherited)",
- /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
- "$(SRCROOT)/../../../React/**",
- "$(SRCROOT)/../../react-native/React/**",
- );
+ HEADER_SEARCH_PATHS = "";
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -221,12 +216,7 @@
3D7682811D8E76B80014119E /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
- HEADER_SEARCH_PATHS = (
- "$(inherited)",
- /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
- "$(SRCROOT)/../../../React/**",
- "$(SRCROOT)/../../react-native/React/**",
- );
+ HEADER_SEARCH_PATHS = "";
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = "$(TARGET_NAME)";
diff --git a/ios/SplashScreen.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/ios/SplashScreen.xcodeproj/project.xcworkspace/contents.xcworkspacedata
old mode 100644
new mode 100755
diff --git a/ios/SplashScreen.xcodeproj/project.xcworkspace/xcuserdata/penn.xcuserdatad/UserInterfaceState.xcuserstate b/ios/SplashScreen.xcodeproj/project.xcworkspace/xcuserdata/penn.xcuserdatad/UserInterfaceState.xcuserstate
old mode 100644
new mode 100755
diff --git a/ios/SplashScreen.xcodeproj/xcuserdata/penn.xcuserdatad/xcschemes/SplashScreen.xcscheme b/ios/SplashScreen.xcodeproj/xcuserdata/penn.xcuserdatad/xcschemes/SplashScreen.xcscheme
old mode 100644
new mode 100755
diff --git a/ios/SplashScreen.xcodeproj/xcuserdata/penn.xcuserdatad/xcschemes/xcschememanagement.plist b/ios/SplashScreen.xcodeproj/xcuserdata/penn.xcuserdatad/xcschemes/xcschememanagement.plist
old mode 100644
new mode 100755
diff --git a/package.json b/package.json
index 00b716ef..5aba1688 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "react-native-splash-screen",
- "version": "1.0.9",
+ "version": "2.0.0",
"description": "A splash screen for react-native, hide when application loaded ,it works on iOS and Android.",
"main": "index.js",
"scripts": {
@@ -28,7 +28,7 @@
"url": "https://github.com/crazycodeboy/react-native-splash-screen/issues"
},
"peerDependencies": {
- "react-native": ">=0.20.0"
+ "react-native": ">=0.40.0"
},
"homepage": "https://github.com/crazycodeboy/react-native-splash-screen#readme"
}