Pro-Test effective use of components of the Start screen React-native-splash-screen (a)

Source: Internet
Author: User



The project often uses some third-party components, each time the use of the Internet to find a lot, some good, some do not work,



Now keep track of the components that you've used in your project, and save a bit of time to test and explore for yourself.



Basic configuration GitHub has a detailed introduction to React-native-splash-screen.



First note that this pro-test version of Rn is 0.33.



The steps to configure are similar to the general third-party components, which are not mentioned here. The difference is in the./android/app/src/res. Layout and drawable folders









Splash.png is the starting picture you want to set up,



Launch_screen.xml Code


<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical" android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/splash">
</LinearLayout>


The main example GitHub site also has examples, the use is very convenient. Dobby to recommend






Pro-Test effective use of components of the Start screen React-native-splash-screen (a)


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.