Skip to content

Commit 964ac03

Browse files
committed
pass tab items to TabController in MainScreen
1 parent 5fc09db commit 964ac03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

demo/src/screens/MainScreen.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,8 @@ class MainScreen extends Component {
243243
{showResults && this.renderSearchResults(filteredNavigationData)}
244244

245245
{showCarousel && (
246-
<TabController asCarousel>
247-
<TabController.TabBar testID={'mainScreenTabBar'} items={_.map(data, section => ({label: section.title, testID: `section.${section.title}`}))}/>
246+
<TabController asCarousel items={_.map(data, section => ({label: section.title, testID: `section.${section.title}`}))}>
247+
<TabController.TabBar testID={'mainScreenTabBar'}/>
248248
{this.renderPages(data)}
249249
</TabController>
250250
)}

0 commit comments

Comments
 (0)