package com.reactnativenavigation.controllers;

import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.reactnativenavigation.NavigationApplication;

public abstract class SplashActivity extends AppCompatActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        NavigationApplication.instance.startReactContext();
        //TODO show fancy splash
        View view = new View(this);
        view.setBackgroundColor(Color.WHITE);
        setContentView(view);
    }
}

@@ -94,24 +94,69 @@
 .os.Bundle;%0A
+import android.support.annotation.LayoutRes;%0A
 import andro
@@ -583,149 +583,560 @@
     
-//TODO show fancy splash%0A        View view = new View(this);%0A        view.setBackgroundColor(Color.WHITE);%0A        setContentView(view);%0A    %7D
+setSplashLayout();%0A    %7D%0A%0A    private void setSplashLayout() %7B%0A        final int splashLayout = getSplashLayout();%0A        if (splashLayout %3E 0) %7B%0A            setContentView(splashLayout);%0A        %7D else %7B%0A            setDefaultSplashLayout();%0A        %7D%0A    %7D%0A%0A    private void setDefaultSplashLayout() %7B%0A        View view = new View(this);%0A        view.setBackgroundColor(Color.WHITE);%0A        setContentView(view);%0A    %7D%0A%0A    /**%0A     * %0A     * @return -1 if you don't need a splash layout%0A     */%0A    public abstract @LayoutRes int getSplashLayout();
 %0A%7D%0A

Add option to set custom splash layout