1 | ;
|
2 |
|
3 | import React from 'react';
|
4 |
|
5 | import {
|
6 | NativeModules,
|
7 | requireNativeComponent,
|
8 | } from 'react-native';
|
9 |
|
10 | const NativeAppLoading = requireNativeComponent('ExponentAppLoading', null);
|
11 |
|
12 | export 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 |