Skip to content

Commit deef243

Browse files
committed
explicit usage of DefaultTabBar in example
1 parent e2f20ca commit deef243

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

examples/FacebookTabsExample/SimpleExample.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@ import {
33
Text,
44
} from 'react-native';
55

6-
import ScrollableTabView from 'react-native-scrollable-tab-view';
6+
import ScrollableTabView, {DefaultTabBar} from 'react-native-scrollable-tab-view';
77

88
export default React.createClass({
99
render() {
10-
return <ScrollableTabView style={{marginTop: 20, }}>
10+
return <ScrollableTabView
11+
style={{marginTop: 20, }}
12+
renderTabBar={() => <DefaultTabBar />}
13+
>
1114
<Text tabLabel='Tab #1'>My</Text>
1215
<Text tabLabel='Tab #2'>favorite</Text>
1316
<Text tabLabel='Tab #3'>project</Text>

0 commit comments

Comments
 (0)