UNPKG

react-native-animated-splash

Version:

[![Build Status](https://travis-ci.org/joemccann/dillinger.svg?branch=master)](https://travis-ci.org/joemccann/dillinger) ![Supports Android and iOS](https://img.shields.io/badge/platforms-android%20|%20ios-lightgrey.svg?style=flat-square) [![License](htt

31 lines (30 loc) 741 B
import { NativeModules, Platform } from 'react-native' import AnimatedSplash from "react-native-animated-splash"; var Splash = { hide:()=> { if(Platform.OS == "android"){ if(AnimatedSplash){ AnimatedSplash.hide() }else{ console.warn('Please link library again') }} else{ if(NativeModules.splash){ NativeModules.splash.hide() }else{ console.warn('Please link library again') } } }, navigate:()=> { if(NativeModules.splash){ NativeModules.splash.hide() }else{ console.warn('Please link library again') } }, } export default Splash