Giter Site home page Giter Site logo

bogdanhossu / react-native-android-splashscreen Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 220 KB

This is my simple solutin how I replaced the react-native android default white splash screen with a custom one.

Python 17.39% Java 13.25% JavaScript 23.03% Objective-C 46.33%

react-native-android-splashscreen's Introduction

react-native-android-splashscreen

I found a lot of tutorials on how to replace the default white splash screen with a custom one, but most of them they were not complete or they were not used on a react-native project. So I decided to make this repo with my simple solution for future projects.

Result

Documentation

My solution was to create all of the drawable folders and create a splash screen with the logo for each device size. All of the splash images are /android/app/src/res.

To change the splash screen image with another one you simply need to edit the android:src="@drawable/splash" in the /android/app/src/res/drawable/splash_screen.xml with your own image.

To change the splash screen background color with your own you need to define your color in the /android/app/src/res/values/colors.xml and than to set <item android:drawable="@color/<your color>/> it in the /android/app/src/res/drawable/splash_screen.xml

react-native-android-splashscreen's People

Contributors

bogdanhossu avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.