Build WordPress App with React Native #22 : Splash Screen on iOS
Tags: reactnativewordpre
Published: 2019-12-14 12:07:25

---
title: Build WordPress App with React Native #22 : Splash Screen on iOS
published: true
date: 2019-12-14 02:07:56 UTC
tags: React native Wordpre
canonical_url: https://kriss.io/build-wordpress-client-app-with-react-native-22-splash-screen-on-ios/
cover_image: https://cdn-images-1.medium.com/max/1024/1*0qWyQ1BHUL6FoFfa-uPTYg.png
series: Build Wordpress Client App with React Native
---

This series intends to show how I build app to serve content from my WordPress blog by using react native. Since, my blog is talking about react-native, the series and the articles are interconnected. We will learn how to set-up many packages that make our lives comfortable and learn how to deal with WordPress APIs. Here, the most prominent features talked about in the book are the dark theme , offline mode, infinite scroll and many more. You can discover much more in this series.this inspiration to do this tutorial series came from the [React Native Mobile Templates](https://www.instamobile.io) from instamobile

In case of wanting to learn from the beginning, all the previous parts for this tutorial series are available below:

1. [Build WordPress Client App with React Native #1: Overview](https://kriss.io/build-wordpress-client-app-with-react-native-1-overview/)
2. [Build WordPress Client App with React Native #2: Setting Up Your Environment](https://kriss.io/build-wordpress-client-app-with-react-native-2-setting-up-your-environment/)
3. [Build WordPress Client App with React Native #3: Handle Navigation with React navigation](https://kriss.io/build-wordpress-client-app-with-react-native-3-handle-navigation-with-react-navigation/)
4. [Build WordPress Client App with React Native #4: Add Font Icon](https://kriss.io/build-wordpress-client-app-with-react-native-4-add-font-icon/)
5. [Build WordPress Client App with React Native #5 : Home Screen with React native paper](https://kriss.io/build-wordpress-client-app-with-react-native-5-using-react-native-paper/)
6. [Build WordPress Client App with React Native #6 : Using Html renderer and Moment](https://kriss.io/build-wordpress-client-app-with-react-native-6-using-html-renderer-and-moment/)
7. [Build WordPress Client App with React Native #7: Add pull to refresh and Infinite scroll](https://kriss.io/build-wordpress-client-app-with-react-native-7-add-pull-to-refresh-and-infinite-scroll/)
8. [Build WordPress Client App with React Native #8: Implementing SinglePost Screen](https://kriss.io/build-wordpress-client-app-with-react-native-8-implementing-singlepost-screen/)
9. [Build WordPress Client App with React Native #9: implement simple share](https://kriss.io/build-wordpress-client-app-with-react-native-9-implement-simple-share/)
10. [Build WordPress Client App with React Native #10: Setup and save bookmark](https://kriss.io/build-wordpress-client-app-with-react-native-10-setup-and-save-bookmark/)
11. [Build WordPress Client App with React Native #11: Remove and Render Bookmark](https://kriss.io/build-wordpress-client-app-with-react-native-11-remove-and-render-bookmark/)
12. [Build WordPress Client App with React Native #12: Categories screen](https://kriss.io/build-wordpress-client-app-with-react-native-12-categories-screen/)
13. [Build WordPress Client App with React Native #13: Configuring firebase in contact screen](https://kriss.io/build-wordpress-client-app-with-react-native-13-configuring-firebase-in-contact-screen/)
14. [Build WordPress Client App with React Native #14 : Implementing Settings Screen](https://kriss.io/build-wordpress-client-app-with-react-native-14-implementing-settings-screen/)
15. [Build WordPress Client App with React Native #15 : Forwarding message to inbox with Cloud function](https://kriss.io/build-wordpress-client-app-with-react-native-15-forwarding-message-to-inbox-with-cloud-function/)
16. [Build WordPress Client App with React Native #16 : Dark theme](https://kriss.io/build-wordpress-client-app-with-react-native-16-dark-theme/)
17. [Build WordPress Client App with React Native #17 : Fix react-native-render-html to change theme](https://kriss.io/build-wordpress-client-app-with-react-native-17-fix-react-native-render-html-to-change-theme/)
18. [Build WordPress Client App with React Native #18 : changing Theme](https://kriss.io/build-wordpress-client-app-with-react-native-18-manually-changing-theme/)
19. [Build WordPress Client App with React Native #19 : Notify user when offline](https://kriss.io/build-wordpress-client-app-with-react-native-19-notify-user-when-offline/)
20. [Build WordPress Client App with React Native #20 : Saving data to cache](https://kriss.io/build-wordpress-client-app-with-react-native-20-saving-data-to-cache/)

In this last chapter, we are going to implement the Splash Screen using the latest version of React Native and plugins. Major steps in this tutorial are going to take place in Xcode as we need to configure the iOS part of the app for displaying the Splash Screen. The idea is to add the required splash screen icons and configure the native iOS app directory in the Xcode. We are going to make use of the react-native-splash-screen package in the React Native part as well as the iOS part to display the splash screen transition. Most of the work takes place in Xcode for configuring the splash screen and only some minor part is for the react-native side.

If we realize, there is already a default splash screen from react native project. But we are going to implement our own splash screen with our own logo icon for our React Native Food Delivery App App UI clone project. For now, we have just put some text on the splash screen which is displayed in the emulator simulation below:

# **Downloading Required Logo**

For this tutorial series, we have the Scooter logo icon which we are going to integrate into the splash screen. The download link for the logo is provided below:

![](https://s3.us-west-2.amazonaws.com/secure.notion-static.com/464ff949-f797-46e4-ae93-b8d5c078d667/avatar.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAT73L2G45JXXFDEWV%2F20191214%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20191214T015958Z&X-Amz-Expires=86400&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEOD%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLXdlc3QtMiJHMEUCIC68co9djorL%2BdqCmuTOyvQKxIfiSAkFhJq3cZU3GZG1AiEA2RkApgI2MNyxeyvxMxxziCVtjJUhFW61gjv3xp%2Bxc3kq0gIIORAAGgwyNzQ1NjcxNDkzNzAiDCaS06hV8orUNX%2FLBiqvAn9UufTS2GnlzCuUQ0ocrtit%2BJQt19IRPeUrhlFqSv4M0h0Z9lDqTt6iL3IypTM7jHHI8crt1BHdHphTqjupVELpe4yZlvhGwiDsIoJH408eyAsNOz%2BQwSIwQ2rN9cMStQlTaZBCWH3QTXWiNtDPtas5cgLZFElPlXnXlhsmbu%2FFVMuByEoo78D4Tjhes1GY%2FG%2FpIv5V54NVPsAJWfjCqTRrc3oGrDIDzIXshrdYxsWfoUQHncYIsGjFYTsxqQhgGbU7EVHveGYvxOqpoc5Mu178WvaDHo38KJRimybSk2hnsx8T6Yh763AnYiUcptc5%2BZxSr2e9RRL5ih%2BhIWcUh6YrsenzrWozRXrMFR1%2BkJafxP20yTmCuXz5hc6RMiuQUgRGQfT6%2BUn6hEcAbotVUjCuvdDvBTrNAlrQq9hH0D3GO3wdiSZU%2B05r4EdGBDP5hvH%2B37LKGuzgze2M%2FumQiEVpRdahMvYxdJNqICe7TPxeDemnf0shTtb5Wj5fljblmSPKkKHTQr6UktJwHRJE9MawBPuPL2ExgE%2B9fmyrRWlS2bdORGLSPK61q2MGg5qTrCLP1C1Jy89RaTR0UaMiuaRGgpCS4BkAwEovkPIa0J5Uxh3qPGc1kIjTUsKm2X5UKF6hnNmYiDTzNsOatkXfL1L9OOUScCFVjiP%2BNICEF4%2F793Zj0WRJChs1ej3bwP462yqx1VNp5QEdSiJOpwHgda7jbvvMQdT6sfJ2yEdwITcSZkIpt6K31I8v3D81lOcsgcEcthD8vBJql78WuVDsKQx0xLs8yPXucgedil82rMxI0V8iit8C4oU%2BV1CkooEoGTZjbTgQEJH9DVud31BMiC1mhZSS2g%3D%3D&X-Amz-Signature=81a59b2ba5f6d995c970e9eb0ee1c8205d26b9e190a3251f374a1c797ed73eb5&X-Amz-SignedHeaders=host&response-content-disposition=filename%20%3D%22avatar.png%22)

for generate image use this [tools](http://nsimage.brosteins.com/)

# **Installing Splash Screen package**

**Here, we are going to install the [react-native-splash-screen](https://github.com/crazycodeboy/react-native-splash-screen) package into our project. The react-native-splash-screen package provides us with a splash screen API for react-native which can programmatically hide and show the splash screen. This package works for both iOS as well as Android platforms. All the configuration for the React Native part as well as the native part is provided in the documentation. Now, to install the package, we need to use the following command:**

```
yarn add react-native-splash-screen
```

for iOS

```
cd ios ; pod install
```

# **Configuring Splash Screen in Xcode**

**In this step, we are going to configure the app in Xcode in order to integrate the splash screen. First, we need to open our project on Xcode as shown in the screenshot below:**

![](https://s3.us-west-2.amazonaws.com/secure.notion-static.com/3d050c62-dd50-4cf7-9f37-8cf23eac678f/Untitled.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAT73L2G45K5PX7BT7%2F20191214%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20191214T020024Z&X-Amz-Expires=86400&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEN%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLXdlc3QtMiJHMEUCIClTcoA2OLbmaZIu6I2usGGDncSAmGQtHJUk%2Fi63uLJSAiEA%2FNY%2Bp7pRbSGcXvfBtGopyFSRmVygIDogsPHrjW5GIzMq0gIIOBAAGgwyNzQ1NjcxNDkzNzAiDPB9zdTdrTDq8mIFrCqvAqvWbg%2BNrbuvyh6%2Bn6v2K76VSrm2Wqf4d8IQrrG5eD5TYNvQFAU3BxqqkpSJha%2B02lqBPWlQLexlfbRgUK0tDP%2B%2BFREZjCPkPpDFECZ%2F3gmhOQ4h6E3%2B3BAu8KuUEWOhC92XKDQNQvJeCfoEMDR1gQ5WbRXG0dq1uQcUzJDAYwXKHG0Mtk%2Bdg9e2Q6xLM1XMrUcT6np%2BEGvmwvhp4HcNIQc7oTeRf5nzPA%2BgwvI1IySsMuvIQ5ET2ppnbp6CXFFLnWLArfbIrDgHp8i6Ouzd%2FoZDDpiuFzoJ6Iy2LJmmNqXlQX4SIlc53FuCQsnpSiM4TqpGhxD4alj2DIYQ8P9JXDrRqyM10FyI%2FuRwPbK95QVbS6Yw1qDUG74eYJ5giqvGbCl6QUrYAWTtkYbF6wz%2B4jCWqtDvBTrNAnW8wwZRmsQdzbal4xeaYkvUSsKpec5Zii%2FI7DxOD%2FEreWR23zy3c7bPZvrZIGZObzro9Mpp3F53qA4Q1zr%2Fu3UwR1XVCpjv80eh31ZB0Hwh%2Fv%2BdlttWyhOrlbCmCAQOt5lOUT8CeBPZ1WPjcBKPO76ZQmVtP5K1inBicl7awxfSOp3mgBhiZ4pLjAVcEnutE0lHFWar7VArwy0oxNRV12fVsXUAI%2B9Gfv1eX4euo0dvrduiJ%2FmjABZ5%2F7PJ60diC57aJvVxvPcyf4teDZ%2BtrO1OYZrjzCWX818i0vjq45HsN18UF%2Fnp3Dq7nDoWzF9ro6npXhqUC5ZjgdYWlQu1fY5bwFclpruC62hXWaUxpOswli1TDjrKSXBLw6qZ%2FTPZh8YPlIIPngxcVwlpxPmM3xnOjSdWh1ChZ8JIBQr8Q7yV3IZNP5PSUpVNYYk1sQ%3D%3D&X-Amz-Signature=c537f4fbed629927cb86ed5bc273effea91e0a33838474f82b49624c83bcc163&X-Amz-SignedHeaders=host&response-content-disposition=filename%20%3D%22Untitled.png%22)

Then, we need to rename the new image set as SplashScreen. Next, we need to add our app logo images to the SplashScreen image set as shown in the screenshot below:

![](https://s3.us-west-2.amazonaws.com/secure.notion-static.com/d65e99a0-0ab7-41b8-9d5a-100f9986ae42/Untitled.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAT73L2G45NYLJ6476%2F20191214%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20191214T020117Z&X-Amz-Expires=86400&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEN%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLXdlc3QtMiJHMEUCIQCK0cuGNjUGkJfjDeq0AYmNbCshrbdayxk4xnDr86g3PAIgZDfTTG2sF8AFpZds3w0e%2BJ17lxcLtMUxaXPB7uj6aZgq0gIIOBAAGgwyNzQ1NjcxNDkzNzAiDJIM5g%2BLYa19I9J%2FhyqvAi1Qjc1lIpjuhx5iQBhhqJ4n8qgKdPTOhWYrFxRezaofIEeS18uU%2BpLEEZ0j%2F4j1RzLG1wnY%2Frj9q1pCeTUnqZ43Q1IMGlhmkwpw%2Ba%2BLQQGjvCc1sMxtevSkuEvJh04YNPPIHG31nXfuDdZk7tRYtxpWE4DqfHZefOCOYnUiWYQG%2BbvG0wxdQqfUxmZDsdxV8BwPybw%2B1fQGmOSjqZ6hLrKZKl%2BWOSKbIUZD1kPhfb%2BHWe%2B%2BbApPmNMmXjiH9kC3r80AGr6D0PrBwNfhHeiWpWwvGWxNRWTq8lfsGF0q13LqpCzodg6kKXvLXaWbau5OeDNFBz4kgHqHHd1u1BTYd0BvsQ6w7m3Ay2FsieuV2dAaOli7Uor8gqdaoZ%2Bq4umHEuq5x0HyE%2FqIJe1xrLa2QjC4ttDvBTrNAuyjSq3V2daY42NDXWctO18Pcgf8r7Rf03am7gjzxnN1l6kEjvBcuENgFpb4arsNmx4p3%2FF6b9UgYL6ujezgepY%2BlDY%2F6xirGX07hF5JgCACqPFd%2Fd%2Fx2xu8JSDxvxi4eKG%2FDwguSUcL3IASFWTcEB2NgX9tyEbM%2BRbQ0TMNoW37j8YUDIqaW0feWVL7qJbk9rznABzaJRaaW4qribqoxKsezgBC1UvhczXx7I6phBg2cQlcDkD%2BwOGlJNEJn%2F8dvxcPcNr6g9xVhOjmUnGGvrsr4R3o07G%2Fs2xQZw16ct3K6BTzEygvjb%2FhH92z8%2F%2Fb%2B1p2fGTcpBEtPMDYt9ZiwgzzXRJv7zcZghAdJqZINKg1qz3EHNqSipmnb2M2mgFyPLaUzubfu%2F18MsvSh%2Bb35Gp9QWGFSJcHB%2FtQjZg4Uz8GHhClJW7OdSD%2FpIGOEA%3D%3D&X-Amz-Signature=845c7567a1d09e27c9c923e5f7affdebef5169efbfa7f1014dc5069a17e331da&X-Amz-SignedHeaders=host&response-content-disposition=filename%20%3D%22Untitled.png%22)

 

Now, we need to open ‘LaunchScreen.xib’ file where we can find our default splash screen as shown in the screenshot below:

![](https://s3.us-west-2.amazonaws.com/secure.notion-static.com/897a8780-4987-462a-940e-72cf357d7cf9/Untitled.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAT73L2G45LHSVNJJJ%2F20191214%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20191214T020141Z&X-Amz-Expires=86400&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEN%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLXdlc3QtMiJGMEQCIGwaHBLnZkDiU9PRgiZfaBpHzvR7UoA0atjKrKYmQWl%2FAiBHzopElh4hWK%2FHNCZGSLtuX4Bu6NmxycAvrdXq6zsnNirSAgg4EAAaDDI3NDU2NzE0OTM3MCIMIR0lbuUVmTo%2Bbrk6Kq8Ced1nc7MfoqOa3IztRkL5DQxeLvT8F6hKkDX2FZV5od9Hj9mNGULw%2FBnrZEnURrWKb6qqWclSA%2F2xVNOIrxvhErZNw6RGS8KUKLDrj65KFOCpViizAKFuuWSiay5lKIkRpdisYgiXqv4Pt3l2tTikqyCuoZMxtRLCs7bUjAO%2F4e0XiaW81lGRqfYuZA1qCS7mzFV20Ia9u0XsiI95VFFl3olw7R9hLiJw%2FiKM3wo4z6VAjaKcvy9cYnmyn4KcTZuaWGhhMCOx99FjqDBEyENAchIUr2QdKynPxge%2B0FEO5fGViTdH8FFrE%2FfmNUv1mqXkVY2QFjmVB3d87GXhrQFmppPgAm8s4Rmdw6DtDu4xKUAUU6hIfdr%2FmHYOqZd7gmD2H0fZY%2FubgFQ0jIf9ep6EMOOv0O8FOs4Cx62qnWktVmZ3s6jaOZXp9jSWuT8jEr9bGjtEKXUKddqTc%2B6i2EG1%2FD1KGoOeea4dAly%2B8p%2FU3rIxaqJekm%2F%2BuA7UszHe2q%2B7f9T7S4OjMtmtQWPvRusN8eQpBKFfEeM7EjiQJ46aBG73%2BAGnfQHAy%2B2DwHLHFuR4bXCtTyLX8xNoeQkkfxqPjVhULqDWBpwJHObp5CNdRSAzSTiJI3WUIEsDlovxCGuYeg4Ydmi8hRFM1nfL%2BL%2BqQxNXyBl%2FfjGSTUcMuFO%2BOfijdrWw%2Fc7OoCAuPTptAZF2DS7rZ0fFk7AFPNiiIT0fA6ACqMdTVCZRaWxbfADlajSpVctiLhllItgjhYXT%2BafozzhVYDMF2L46JCXKjHwpcD5ctJ%2FUfCc4guG3kJoz9cjrDkCw5lDTUgk3cUcAEeOU0N0WxYVc31WKJme0emea4AUzBAlVhA%3D%3D&X-Amz-Signature=efd19d4e0b9f28c9336be2e9532bb05f4ac759c781dfee7cbe172a1c00daea3b&X-Amz-SignedHeaders=host&response-content-disposition=filename%20%3D%22Untitled.png%22)

As we can see, all the default setups are shown in the right configuration panel of Xcode.

Next, we need to add our app logo by clicking on the Image View button in the image as shown in the screenshot below:

 

![](https://s3.us-west-2.amazonaws.com/secure.notion-static.com/8d39fa30-8877-412c-8e6e-1c6037e363a8/Untitled.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAT73L2G45PKIJZNHF%2F20191214%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20191214T020201Z&X-Amz-Expires=86400&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEN%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLXdlc3QtMiJIMEYCIQD7YWmTrnzI1%2FsUemL40O5e6YynStSvxc6vFTJAnfGpwQIhAIOh%2BJgZYUS%2F5tOE9DkkW6AI6fmuCH6Vu6d5%2BirfzNuNKtECCDgQABoMMjc0NTY3MTQ5MzcwIgzDCPq5GD4uivl69asqrgKm0z8kzH2BJBOMV%2ByWBphvrdUlThKYjNedP%2BW%2B8548cWWc9WKJ3L8%2FgDPrFD%2FZSb%2BdK6NT8kSAywNmaUqWUPYFOquqETSzYZ7pmUE6VMMCxueK8DNW11KF5GOTIU8yFD2fUVg55elsrBK4xbNzWb1qIc%2Bojgnog%2Fjg8Bwe0WPkozzSefa169UA2C9XL7youhW1KChcN2ONmFoVe91BgzaxtRv1y5%2Fy1By0l1dGfciVIlCVtcZq0DOjaxuN2FxeV0bqZRdVoZmtcFN5fnDEdLg0doaBKTW6e1KA60nDvOXC4DzDL7i%2BxD0qn%2BYW8u5kYFsfOo1o6cwqg%2FvKqcuHxvlsdG9zY5mcq%2FkXEGfeQCNeXfQexoHULnYutyQ9zFeVfG1gNfkzm1p4vtvmM8vYnDCdtNDvBTrNAoM4PUJtCR1cOiFFw1U9VXIWYBjQ7x8xP2JN1zPPRKBiI90C8VN8CvwIpXc9xaIeuz3CqUPpcEFZcaaUVFQjb1DD5g7vShDKUFPONxEM9W%2BzMzpxjH4qS7XG7%2BYzEko7H8QBJM3sueHv0fTaXIl4%2FnGypNpvlzqFz%2FucVCY3%2B0zZKkx9KYrH6Is89qnRVLbfYUDWIgWxGFcSuj36ryj82Xmn9kDMI3aiSBavEGCrix47qpfRyunqrYGLHS0GifC%2BhZD6sYAUaaGxlrUoWiSrv4QU3g2ZQZ2wfcp%2BwK1LeetHUMxh2c9F1bPA1KS%2Fj3ULi0Ix3dbvu91yLmoqR2S54V7vu8YPO5QuuBUd%2BR%2FH%2Bc2RoCUyMjjIt9ADZuWR5%2BZ0yYw07ozIcl6txniyieHTkLDl6orNrGkVLA74u8B2Y%2F078X0lJZtVpRuOr5JSqw%3D%3D&X-Amz-Signature=31a7e0f148db5934f18eec0dd007867e048d0a17622a9d362be284e683e8b5b2&X-Amz-SignedHeaders=host&response-content-disposition=filename%20%3D%22Untitled.png%22)

Next, we need to add the SplashScreen image set to the Image View tab of the right panel. The SplashScreen image is to be added to the Image field as shown in the screenshot below:

![](https://s3.us-west-2.amazonaws.com/secure.notion-static.com/80a32abc-136f-4fbc-9b93-a21f089c5de2/Untitled.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAT73L2G45OTT77TWJ%2F20191214%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20191214T020229Z&X-Amz-Expires=86400&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEN%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLXdlc3QtMiJIMEYCIQCbgngPaLFSvg%2Fd1ZoW%2FxIf3dpFDKE5yOq4XERVzRQvwQIhAJ5kMqdHpBUxTnI%2FxitGX5AdglZKxn0xxuSZYV5FpGkMKtICCDgQABoMMjc0NTY3MTQ5MzcwIgz7zqPZIEVuxWGK6o8qrwIR5ii4RNUScab73djsD3O9sKIX2f5i42v%2B5CWbKjBlAUYCwz6TqIHgkBI9DvI6VLy9p6zrtO9VyGARfk5DynXn4fphkDK%2FfDUQDavhv9ZmRcWvMcvdib0HntuzoVJeOM26P0x9AVW4RRylsiEOEv2Aw4YSNFZ8GRk7i6xT86wV467Fkpbt18wmabUCz%2BnDP0mnXJP81Kn9fyJp%2B%2BaAuckQEkYeoRmD9QzDpcP8mjtvea2ZC9ilvOwq0rHtXjoL%2BNF3%2FJloQuAtyOf8IoDD4B5zFI%2FJmpXkkh8POI0yU3hBZ9GdUf2VW5VZn40hNdfZBUNddWdRh%2BfqKj5IPzzc14SdSA%2FX0IaTKM3JRMNc82XlEKx2y0DDB8lryGnR1BVCxxik%2FoQ7u3auf438VUgCRA8wk7LQ7wU6zAKTv402sQPHPbN4B61d1xzoHa0I1x8KKv1jPKj%2FTOZlO4UpzmXylT%2FzCMyXRGKoBMHt%2BIyVbWcBdeiSOEstWphyz54XAVQ6FgiOMldgY7vgckwmp7c0QSCcFoBSxjWMkaQEXDrxrW32SWx9GTFJZjhKRitUy2ekFr%2FeKiGv%2BYFnO2QW2ZhSguonz7pcfvgljLAzQZ15VZwgfkuE65xF6R7muypBev2BA9antaQFMkM0JaS1EP1i1nUdLS%2BQkeS%2BHLPCx%2Fju9ThtOQ29Z4GGNg9k%2FAu52zm%2FIiIMxgf2A7XUtHh%2FWA%2Bb5YMm1%2BYXTBuhYssSut6QYR2ny7dfu6wQXXX6hvtGvCQfK2j75iqr9ZwQdR3zsCMGnF59jQ6FMLHueOOhu6gvLpDB5cwdCC4eCWDjpCW1Rv8oinSD6jSLmrij1bsljzAo2nmtT%2Fl8sg%3D%3D&X-Amz-Signature=32aab204a581e329203fcad15b1e04cc2f06fe6d73f3a3cfae802d51464e8534&X-Amz-SignedHeaders=host&response-content-disposition=filename%20%3D%22Untitled.png%22)

Hence, we will get our app logo into our UIImageView. Now, we can shape the size of the logo from the above screen. Therefore, we have successfully completed the styling of the splash screen.

Next, we need to add the react-native-splash-screen package to the Xcode.

# **Activating splash screen in Xcode**

Here, we are going to integrate the  **react-native-splash-screen**  into our Xcode ios project. For that, we need to go to:

**`node_modules`**  ➜  **`react-native-splash-screen`**  ➜ `ios`

Then, we need to add \*\*`SplashScreen.xcodeproj`\*\*file to it as shown in the screenshot below:

Next, we need to go to: `Build Settings` → `Search Paths` → `Header Search Paths` of the Xcode and add the following path:

**`$(SRCROOT)/../node_modules/react-native-splash-screen/ios`**

The visual representation of this step is highlighted in the screenshot below:

![](https://s3.us-west-2.amazonaws.com/secure.notion-static.com/8629aac5-4d32-46ec-981e-d1183c70c103/Untitled.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAT73L2G45P7EYBHSE%2F20191214%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20191214T020256Z&X-Amz-Expires=86400&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEOD%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLXdlc3QtMiJHMEUCIQDfuFpN0%2BemJ%2BXO6Ph88D%2BANo00XrXfspFw7upVJxeC3QIgF1CdpH%2BTo%2BaCXccu7rihXCWhgGFHurn7%2FK2BUBGnMnEq0gIIOBAAGgwyNzQ1NjcxNDkzNzAiDBYoYNprVI0qVjl2cCqvAgbYRPpIVhAnebyoMLIEk4b6lNpsrOh81cpIk3Jd5Flh%2BJdnBvYQm%2B5l3paq6KqM7iOy6s3zUn%2FYnVarxnoAUxL5qcQoEr6e9MaQ3ikShOW3NRf4Nhm3uKz%2BR3Be98ePvoDlgWAAjLijTcJceAEtFpt%2FDApRZ8KYBL3jQPeAVEPbd8ZTnACNTNFf7O3c3eGLuTcLKTbsClV0ikWnh6WbfitWQTm833vZTk7Oqba828qb47YIIfkwv60oSBwU8GzGGErCCxbPCLrcmdQ5jwoBUwSGSD%2B84sXyqxGgQFQwbTiX3LNGkCCLhe75WowSAfnfxaskfAJ%2FMys1Z1A2DYMe3TlQwHSuhE3NzKFg62wuneYuPnbN67RXR5dIL0H9EQQ114i8lBrAxvVZ8NTVW5bjrjDPuNDvBTrNAkF4p6aswqPqmk6BPBdSBlrH79bwDJG4xlNTaAZQ8cBs04D56JeSYzufCMtsPSYcsPJ2%2Fe565sCzqTtypJuYM9%2BHQg6N8eK84nU9dJCHIQft1oivCnumEYqmrO4JP7aRTmiHo944d07EcvBJ87%2FwZx46xzXZAFg7HftiSouemlilSBd0R%2BPfS%2F9hoYBsgVKAqlw0MO4niBtLhTtALCmxGabY6f%2FwW8zbqjKNJurmmML36G7%2BWN7XSAFC1tEj1RQrDjlZ5lv%2Fk5phoVifl%2FrdruRDVawNLHVdyl27ycb0cedc4KKdRJpJ1OYqX74ZWBMVhA%2FH84bsZLhqccIgqZNroK6QVq%2FkhwUbfM3ulHdz9ImnbRl2TF09YbNJd7CeTwisdqOUVbEop0fH9Gq9pvzX3rAnhYWpYOn025Ql8MDu7y6yC1%2B1MdoucuC%2F%2F%2F7HGA%3D%3D&X-Amz-Signature=fce72bb45c3a5b8efafcc0f441140596fcccd627507fa2f8a09712c57d0bd5bf&X-Amz-SignedHeaders=host&response-content-disposition=filename%20%3D%22Untitled.png%22)

Lastly, we need to import the react-native-splash-screen package into the `Appdelegate.m` file and activate the splash screen. Here, the package is imported as `RNSplashScreen.h`. Now, to trigger the splash screen, we need to add `[RNSplashScreen show]` at the position as shown in the code snippet screenshot below:

![](https://s3.us-west-2.amazonaws.com/secure.notion-static.com/22f1d007-cd41-4252-bfb8-cea8146246f5/Untitled.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAT73L2G45CS7E4YNK%2F20191214%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20191214T020337Z&X-Amz-Expires=86400&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEN%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLXdlc3QtMiJIMEYCIQDtW6wI5YcL07YHHOFwogNdmME%2BbCV7%2BSrPqplvkGD0tgIhALmgJ59yFZp2LtMIQI5Fi67URJPDLeISRcWBCeoeS320KtECCDgQABoMMjc0NTY3MTQ5MzcwIgwwxIOkmY6mssnFnTgqrgL00WO7WpJbOa7sAyzxvUIo1XQG0A4BtgwcV074us%2BvTwdoriw64VfGG0QOA7CtRX5%2Bo%2BbbDLCDobdbg7hR%2FZ6Xp4PrD7A20Tma2nUfuLX7yWufWQM4So36azfCKvKj4lWEsdVe218%2F0vQOLSX5JSobOHSUf%2FJmEkeRT9%2BXTlawQtdq3k4wHj%2B1Eh027KTePze8jzLn3Pk7itVLhlOz1CwHVm0d4eHQDmrcNM25k4axjUIJ0BUjELRmwHVnliGAMEwOH%2Bb5dxqu08Z4Dd1zXwTEEQbvhvJ1ET7P3W6301e9LYLEo%2F00aarpVFHCPHkIIb1pAG0jvY%2FIxouJGebuwEsorRPCkdj%2FIJ%2FZb8ItCTkDBF6nyk8prZHRdRDUvaNIaVEWJGotGeALHJHpfgagITDtptDvBTrNAjeJ6WNCgCxoGtLbFvX%2BmDxU9ONSm%2BneBxnCPkVNFNVzCrnrl6GwuxhjilU%2FZa%2FXfNPVhrXey7u7Ide5Cl%2FEC%2BBcmYXf%2FlDlGkHoabeLmd%2FX5siHH5t1mGHskTvAC4rXIAikid%2BSY5pjgR6mzU90h08sSz8mlij9v4cGtPGY2274dXyStQr3zKIxNadR%2FsMbytYJm7paNi%2Fjz64Eai8%2BSH%2F4EI27eGGkFQudWK87hAWjwWi0O2deTkXmIDONPzgDOKLEgfs3tGD0LEmB8KnvylTjF1eAgqRgWTwSRMeTmepqGXogE1qAa4x8Fg%2FSAaAA5rb%2BxQbCWsgS8IgkshInVLDdQ0%2Bfoh%2FTmF4n6bHnv7Or6V4K7IHVDVLyxOw1cTAy3jEAi0YKhrKEvxzmlw%2F6PwY1m5yea3IoEZHdpfeJgf9YY3BCERINUcqFnVXDnQ%3D%3D&X-Amz-Signature=403c3249d44921457e98f578f7cf9d810e86dea8c34909641c531bf0a32ed22f&X-Amz-SignedHeaders=host&response-content-disposition=filename%20%3D%22Untitled.png%22)

 

Lastly, we need to import the react-native-splash-screen package into the `Appdelegate.m` file and activate the splash screen. Here, the package is imported as `RNSplashScreen.h`. Now, to trigger the splash screen, we need to add `[RNSplashScreen show]` at the position as shown in the code snippet screenshot below:

![](https://s3.us-west-2.amazonaws.com/secure.notion-static.com/9433c1ca-a269-4f51-9bf4-639d3f207f73/Untitled.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAT73L2G45JLZOMPE3%2F20191214%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20191214T020501Z&X-Amz-Expires=86400&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEN%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLXdlc3QtMiJHMEUCIQDsH7Hee%2BJN2N%2Be3%2FQnigGs7%2BTkRSQBGPHIET1ur7uyygIgN%2Fi809%2Bbktd9rMAo3jaRy%2BP7Pce1hrLEE4XosAQ%2Bv14q0QIIOBAAGgwyNzQ1NjcxNDkzNzAiDJRLl1EUW4uA5ssG%2BiquAkLA8X7zY28u5BodcHjzPV1BmTZ%2F9kpJ75rxAbwzQeA%2BvXrievZ7UsWE1yVwa5nP%2FiNmv7hTrW5vB%2BMdckD1WXDSXRlGubYainZeo2TlxEm05DUZp0%2F1oqMChzAPD75yerZRVGL%2BNbNRkh1H2no45jz0%2BpEf7pf20B%2Fgc45OVHo2U7e878%2FhRh1GR9sV2HgJrBulKLZPJbnXjcN1OWuIvuZtAqpx5IVuE91LZTqLuAME%2BGzFQBMpzFwMR3UhoWscI1wNp9Pqu58TXT6LfizpHccbyyujmJeFMss43r0sGzIwKyDYPZp9oIyvCOpIt4ITVBsiNPownrMxUmhymNFkbgTNGNwb4F%2F8E5jHONfUx9wiGBQ%2FChsA0WEAlnBzrfjUfC0YrfOf0MlGT89fS%2BDSMI%2Bw0O8FOs4C0VwZycs928WxGpWaOAq93q5NBDMqbRY9CzgNho8FYRjaZmS0EvecrTMbEOvtIvLlVtH7dIr%2BxiTHF72A7jE9xjMLvxqyGjpPB9kYqKKfrhU9HCyHr7kEooWIOdWEqxvOFba%2FzeJI8%2BIbgfY2hgw5VgidYjcyPFymViocXX32FdRzNJNVx4X6Q3FeRUaxmHeOE5RHNGd0hThPA5gE6r5Q3zLlDBXFOWWlEg%2F9uTNIhJwhOXRoayMlEqvM2naxR2UOz7L37T80P2A5X02biIOsrnVho4MZ353QgEMdH2NEXtnPWQqBE3cpFe5bSt%2FXi3ei5PXbgrzoTVAXE9wBVc1tKAQ8r%2BWzYFUwo81l4vyHSMCuUS04j75nMcDU9x4R9NWe%2Bauv2zQeTWqV4RhYzVrgYC2F85Rct6R7cgssdYs8i58qCaPqL7o%2Fx%2BSbyWaUgQ%3D%3D&X-Amz-Signature=5a362faeac9184eaeb4dc9ac1a3b9fe90d067ffc44f3be3f65a463f39a020d29&X-Amz-SignedHeaders=host&response-content-disposition=filename%20%3D%22Untitled.png%22)

Now, if we re-run our project in the emulator, we will get the following result:

![](https://s3.us-west-2.amazonaws.com/secure.notion-static.com/19198fe8-761a-423e-8fdd-d63460595670/Untitled.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAT73L2G45IVAR46WP%2F20191214%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20191214T020551Z&X-Amz-Expires=86400&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEN%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLXdlc3QtMiJIMEYCIQCtzOTujKstoFrOtV6I9YA5Inrfs9fvXESTrh5pZEW4uwIhAOg3T2Fgwt%2BBd7P%2FR8PYBnrDTvDTJQ6LIxTVhzB6pxDAKtMCCDgQABoMMjc0NTY3MTQ5MzcwIgyllZz6UBmoz3M31YAqsAJ3sS7AhIGdbbyYFrml3mIekMBGrUYAq39MSwrRw5h1SG%2BOYzb80%2BPozmNTEWlYwDCBsdwrElrl8ibSnvcqSF0ZCymkqI5dXVQK%2BGD%2Ff2sbM60TI3kBoGlFApKMqMzUKy%2FNY4z922nCA2Rm9IlMvYUlg4kANw70ucV7RNNgN4%2FGYrHQo6yuiwg5oCCQrRQH3AAGw7eIR8s2G2AxzqTubHH%2F85VhlCX5czKflh8%2BJJEspvHOSD7dIaq7FFxhBf3fSkUkhKYIhGYZLJyMszl1PbnomY7xx1IzNr%2Br%2FqHvPfuuoGXvteS6X%2B1p%2B4DcPO6J1meLrTLIzPhM1yK9OSYnjUVEMlk0FLgfKstrPo7ht78MdrjRgkAPpET6f88B3I9vn4WQMRtzd%2F9EdUEBODmWCzUgMNih0O8FOssC681opOMFl8VJkjy1OjUtCsCW6h4z%2F0CzHoUo79bdzIRXKPrM04UhuJGJIm6Q1TK1Cqk2QEc5RUCyiX9pr4x44XLvJbgjfE%2B7u%2Fl%2BAmT3YiqbIrdBSEaoFJlcXlvEDqNRyvm%2F11NDggllx%2FBa5gY0JGnVDeGgvTboeEzUDZ3ja9CDPU8TxOh1LRipI1IupAAMsDZoIHzdWIlHtJI2bZPTYvyQ5Qz%2F1wjQXJqWQC458PITSjTag1IWw5voAdFXKSaOgDuScS0yXRvVElB6AEMRE66DXiLmViwL0hGHzx7J%2B2qMTfVGRpD9ThjCm5ARFa0%2F%2FwhKIVboiOnzTS3GvAcul65kYnfo%2BPkOTeDZ37ezPzzKCSJxTkUvY%2BknFbT23ZcIyW%2FGLISfVO4xm22PaLT5Wyi%2BjYWFOt4MGg6Fj6kEtt5qpraRWuxzqqMpnA%3D%3D&X-Amz-Signature=0fc27b88b1ce7f22ca93093fcc52858b3e544a316a2800ad226e16a9c66b56fe&X-Amz-SignedHeaders=host&response-content-disposition=filename%20%3D%22Untitled.png%22)

### Summary

In this chapter, we learned how to set up the splash screen to both the iOS and Android platforms. In the iOS platform, we got the step-wise guidance of how to set up the splash screen by using the Xcode tool.

The post [Build WordPress Client App with React Native #22 : Splash Screen on iOS](https://kriss.io/build-wordpress-client-app-with-react-native-22-splash-screen-on-ios/) appeared first on [Kriss](https://kriss.io).