react-native-dom-expo
Version:
A patch library to make Expo work with react-native-dom
17 lines (13 loc) • 369 B
JavaScript
import { RCTModule } from 'react-native-dom';
export default class SplashScreen extends RCTModule {
static moduleName = 'ExponentSplashScreen';
$preventAutoHide() {
clearTimeout(window.expoSplashTimer);
}
$hide() {
const splash = document.getElementById('rndom-expo-splash-screen');
if (splash) {
splash.style.display = 'none';
}
}
}