forked from wix/react-native-navigation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApplication.tsx
30 lines (27 loc) · 822 Bytes
/
Application.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import * as React from 'react';
import { View } from 'react-native';
import { connect } from './connect';
interface ApplicationProps {
entryPoint: () => void;
}
export const Application = connect(
class extends React.Component<ApplicationProps> {
constructor(props: ApplicationProps) {
super(props);
props.entryPoint();
}
render() {
const { LayoutComponent } = require('./Components/LayoutComponent');
const { LayoutStore } = require('./Stores/LayoutStore');
const { Modals } = require('./Components/Modals');
const { Overlays } = require('./Components/Overlays');
return (
<View testID={'Application'}>
<LayoutComponent layoutNode={LayoutStore.getLayout()} />
<Modals />
<Overlays />
</View>
);
}
}
);