react-native-bootsplash-screen
Version:
Display a bootsplash on your app starts. Hide it when you want.
13 lines (9 loc) • 312 B
JavaScript
import { NativeModules } from "react-native";
const { RNBootSplash } = NativeModules;
export function hide(config = {}) {
RNBootSplash.hide({ duration: 0, ...config }.duration);
}
export function show(config = {}) {
RNBootSplash.show({ duration: 0, ...config }.duration);
}
export default { show, hide };