Skip to content

Commit f6fe72c

Browse files
author
Artur Yorsh
committed
refactor(tab-set): update examples
1 parent 1b0b6c2 commit f6fe72c

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

example/screens/tabset/TabViewScreen.js

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,30 @@ export class TabViewScreen extends React.Component {
1212
title: 'Tab Set',
1313
};
1414

15-
onItemChange = (change) => {
16-
console.log(`onItemChange: ${JSON.stringify(change, null, 2)}`);
17-
};
18-
1915
render() {
2016
return (
2117
<View style={styles.container}>
22-
<RkTabView style={styles.container} onItemChange={this.onItemChange}>
23-
<RkTab title="Tab #1">
18+
<RkTabView style={styles.container}>
19+
<RkTab
20+
title='Calls'
21+
icon={require('../../img/icons/phone.png')}>
2422
<TabContentScreen style={styles.tabContent1} />
2523
</RkTab>
26-
<RkTab title="Tab #2" isSelected={true}>
24+
<RkTab
25+
title='Contacts'
26+
icon={require('../../img/icons/user.png')}>
27+
<TabContentScreen style={styles.tabContent2} />
28+
</RkTab>
29+
<RkTab
30+
title="Favorites"
31+
icon={require('../../img/icons/heart.png')}
32+
badgeTitle='new'
33+
isSelected={true}>
2734
<TabContentScreen
28-
style={styles.tabContent2}
35+
style={styles.tabContent3}
2936
message='Tab 2 loves React Native UI Kitten'
3037
/>
3138
</RkTab>
32-
<RkTab title="Tab #3">
33-
<TabContentScreen style={styles.tabContent3} />
34-
</RkTab>
3539
</RkTabView>
3640
</View>
3741
);

0 commit comments

Comments
 (0)