UNPKG

400 BJavaScriptView Raw
1'use strict';
2
3import React from 'react';
4
5import {
6 NativeModules,
7 requireNativeComponent,
8} from 'react-native';
9
10const NativeAppLoading = requireNativeComponent('ExponentAppLoading', null);
11
12export default class AppLoading extends React.Component {
13 componentWillUnmount() {
14 NativeModules.ExponentAppLoadingManager.finishedAsync();
15 }
16
17 render() {
18 return <NativeAppLoading />;
19 }
20}
21
\No newline at end of file