Skip to content

Commit 382de25

Browse files
committed
lazy load main page tabs
1 parent 1eece51 commit 382de25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demo/src/screens/MainScreen.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ class MainScreen extends Component {
211211
<TabController.PageCarousel>
212212
{_.map(data, (section, key) => {
213213
return (
214-
<TabController.TabPage key={key} index={index++}>
214+
<TabController.TabPage key={key} lazy={index !== 0} index={index++}>
215215
<View paddingT-20 flex style={pageStyle}>
216216
<FlatList
217217
showsVerticalScrollIndicator={false}

0 commit comments

Comments
 (0)