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