How to take screenshot and share it in react native

Generate a splash screen image

React native Splash screen Android Folder setup

Yarn add react-native-splash-screen

package com.mysplashscreen;

import android.os.Bundle; // here

import com.facebook.react.ReactActivity;

import org.devio.rn.splashscreen.SplashScreen; // here

public class MainActivity extends ReactActivity {


  protected String getMainComponentName() {

    return “MySplashScreen”;



    protected void onCreate(Bundle savedInstanceState) {;  // here




        <?xml version=“1.0” encoding=“utf-8”?>

<RelativeLayout xmlns:android=“”

    android:orientation=“vertical” android:layout_width=“match_parent”


    <ImageView android:layout_width=“match_parent” android:layout_height=“match_parent” android:src=“@drawable/screen” android:scaleType=“centerCrop” />


        <?xml version=“1.0” encoding=“utf-8”?>


    <color name=“primary_dark”>#000000</color>


import SplashScreen from  “react-native-splash-screen”;

 const App  = () => {


  //Hide Splash screen on app load.

   React.useEffect(() => {


   });   return (…)}

Sources for reference