* A smart splash screen for react-native apps
* https://github.com/react-native-component/react-native-smart-splash-screen/
* Released under the MIT license
* Copyright (c) 2016 react-native-component <moonsunfall@aliyun.com>
*/
import NativeSplashScreen from './specs/v1/NativeSplashScreen';
const constants = NativeSplashScreen.getConstants();
const SplashScreen = {
* @param {import('./specs/v1/NativeSplashScreen').SplashScreenCloseOptions | undefined} options
*/
close(options = undefined) {
NativeSplashScreen.close(options);
},
animationType: constants.animationType,
};
export const __testing = {
show: () => NativeSplashScreen.showForTesting(),
isVisible: () => NativeSplashScreen.isVisibleForTesting(),
setCloseOptions: (options) => NativeSplashScreen.setPendingCloseOptions(options),
};
export default SplashScreen;