Skip to content

Commit bae106c

Browse files
committed
Fix example screens of Typography and TextField
1 parent 16a98af commit bae106c

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

demo/src/screens/componentScreens/TextFieldScreen/index.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,8 @@ class TextFieldScreen extends Component {
3535

3636
render() {
3737
return (
38-
<TabController>
39-
<TabController.TabBar
40-
items={SCREENS.map(item => ({label: item.title}))}
41-
activeBackgroundColor={Colors.blue70}
42-
/>
38+
<TabController items={SCREENS.map(item => ({label: item.title}))}>
39+
<TabController.TabBar activeBackgroundColor={Colors.blue70}/>
4340
{this.renderPages()}
4441
</TabController>
4542
);

demo/src/screens/foundationScreens/TypographyScreen.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import React, {Component} from 'react';
44
import {ScrollView} from 'react-native';
55
import {TabController, Colors, Typography, View, Text} from 'react-native-ui-lib';
66

7-
87
const WEIGHTS = ['Thin', 'Light', 'Default', 'Regular', 'Medium', 'Bold', 'Heavy', 'Black'];
98

109
export default class TypographyScreen extends Component {
@@ -74,11 +73,8 @@ export default class TypographyScreen extends Component {
7473

7574
render() {
7675
return (
77-
<TabController>
78-
<TabController.TabBar
79-
items={WEIGHTS.map(item => ({label: item, key: item}))}
80-
activeBackgroundColor={Colors.blue70}
81-
/>
76+
<TabController items={WEIGHTS.map(item => ({label: item, key: item}))}>
77+
<TabController.TabBar activeBackgroundColor={Colors.blue70}/>
8278
{this.renderPages()}
8379
</TabController>
8480
);

0 commit comments

Comments
 (0)