-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRemote.js
More file actions
30 lines (28 loc) · 781 Bytes
/
Copy pathRemote.js
File metadata and controls
30 lines (28 loc) · 781 Bytes
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 throttle from 'lodash.throttle';
import React, {lazy, Suspense} from 'react';
import {Text, View} from 'react-native';
const Section1 = lazy(() =>
import(/* webpackChunkName: "andrew-section1" */ './Section1'),
);
const Section2 = lazy(() =>
import(/* webpackChunkName: "andrew-section2" */ './Section2'),
);
const Section3 = lazy(() =>
import(/* webpackChunkName: "andrew-section3" */ './Section3'),
);
const Section4 = lazy(() =>
import(/* webpackChunkName: "andrew-section4" */ './Section4'),
);
export default function Remote() {
throttle(() => {}, 0);
return (
<View>
<Suspense fallback={<Text>Getting Sections ...</Text>}>
<Section1 />
<Section2 />
<Section3 />
<Section4 />
</Suspense>
</View>
);
}