react-native-template-allmax
Version:
React native template with navigation, redux, redux-saga, eslit, flow, reactotron
36 lines (28 loc) • 683 B
JavaScript
// @flow
import React, { PureComponent } from 'react';
import { navigationNames } from '~/global';
import { Navigation } from '~/navigation';
import { createNavigatiorSetter } from '~/components';
import type { ConnectingActionCreators } from './types';
export type Props = {|
...ConnectingActionCreators,
|};
export class UnconnectedApp extends PureComponent<Props> {
navigatiorSetter = createNavigatiorSetter(navigationNames.main);
componentDidMount() {
const {
props: {
onAppStart,
},
} = this;
onAppStart();
}
render() {
return (
// $FlowFixMe
<Navigation
ref={this.navigatiorSetter}
/>
);
}
}