Skip to content

Commit 7a890f4

Browse files
committed
Merge remote-tracking branch 'origin' into release
2 parents 6a20d87 + d95738e commit 7a890f4

File tree

27 files changed

+293
-129
lines changed

27 files changed

+293
-129
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ dist
6666
dist-ts
6767
package-lock.json
6868
docs/components/**
69+
scripts/token.js
6970

7071
# Ruby / CocoaPods
7172
/ios/Pods/

demo/src/screens/componentScreens/SegmentedControlScreen.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ const segments: Record<string, Array<SegmentedControlItemProps>> = {
1818
fifth: [{label: 'Full'}, {label: 'Width'}],
1919
sixth: [{label: 'Full'}, {label: 'Width'}, {label: 'With'}, {label: 'A'}, {label: 'Very Long Segment'}],
2020
seventh: [{label: '$'}, {label: '%'}],
21-
eighth: [{label: 'Plus', iconSource: Assets.icons.plusSmall}, {label: 'Minus', iconSource: Assets.icons.minusSmall}, {label: 'Check', iconSource: Assets.icons.checkSmall}]
21+
eighth: [{label: 'Plus', iconSource: Assets.icons.plusSmall}, {label: 'Minus', iconSource: Assets.icons.minusSmall}, {label: 'Check', iconSource: Assets.icons.checkSmall}],
22+
ninth: [{label: 'with'}, {label: 'a'}, {label: 'label'}]
2223
};
2324

2425
const SegmentedControlScreen = () => {
@@ -87,6 +88,15 @@ const SegmentedControlScreen = () => {
8788
style={styles.customStyle}
8889
segmentsStyle={styles.customSegmentsStyle}
8990
/>
91+
<Text marginT-s4 center>
92+
With a label
93+
</Text>
94+
<SegmentedControl
95+
containerStyle={styles.container}
96+
segments={segments.ninth}
97+
preset={screenPreset}
98+
label="Control label"
99+
/>
90100
</View>
91101
</View>
92102
);

demo/src/screens/componentScreens/StackAggregatorScreen.tsx

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import React, {Component} from 'react';
33
import {ScrollView} from 'react-native';
44
import {Colors, View, Text, Button, StackAggregator} from 'react-native-ui-lib';
55

6-
76
const TEXTS = [
87
'Lorem Ipsum is simply dummy text of the printing and typesetting industry.',
98
'Lorem Ipsum is simply dummy text of the printing and typesetting industry.',
@@ -12,28 +11,28 @@ const TEXTS = [
1211
];
1312

1413
export default class StackAggregatorScreen extends Component {
15-
state = {
14+
state = {
1615
contents: TEXTS,
1716
collapsed: true
1817
};
1918

2019
onItemPress = (index: number) => {
2120
console.warn('item pressed: ', index);
22-
}
21+
};
2322

2423
onPress = (index: number) => {
2524
console.warn('item\'s button pressed: ', index);
26-
}
25+
};
2726

2827
refreshItems = () => {
2928
const newItems = _.clone(this.state.contents);
3029
newItems.push('New Item');
3130
this.setState({contents: newItems});
32-
}
31+
};
3332

3433
toggleCollapsed = () => {
3534
this.setState({collapsed: !this.state.collapsed});
36-
}
35+
};
3736

3837
renderItem = (_: string, index: number) => {
3938
return (
@@ -42,7 +41,7 @@ export default class StackAggregatorScreen extends Component {
4241
<Text>{this.state.contents[index]}</Text>
4342
</View>
4443
);
45-
}
44+
};
4645

4746
render() {
4847
const {collapsed} = this.state;
@@ -53,18 +52,18 @@ export default class StackAggregatorScreen extends Component {
5352
<Button link label={collapsed ? 'Open Stack' : 'Close Stack'} onPress={this.toggleCollapsed}/>
5453
<Button link label="Update content" onPress={this.refreshItems}/>
5554
</View>
56-
<Text center grey40 text90 marginT-20>Thu, 10 Dec, 11:29</Text>
57-
<StackAggregator
58-
containerStyle={{marginTop: 12}}
59-
onItemPress={this.onItemPress}
60-
collapsed={collapsed}
61-
>
55+
<Text center grey40 text90 marginT-20>
56+
Thu, 10 Dec, 11:29
57+
</Text>
58+
<StackAggregator containerStyle={{marginTop: 12}} onItemPress={this.onItemPress} collapsed={collapsed}>
6259
{_.map(this.state.contents, (item, index) => {
6360
return this.renderItem(item, index);
6461
})}
6562
</StackAggregator>
6663

67-
<Text center grey40 text90 marginT-20>Thu, 11 Dec, 13:03</Text>
64+
<Text center grey40 text90 marginT-20>
65+
Thu, 11 Dec, 13:03
66+
</Text>
6867
<StackAggregator
6968
containerStyle={{marginTop: 12}}
7069
onItemPress={this.onItemPress}

scripts/prReleaseNotes.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
const GITHUB_TOKEN = 'xxxx';
1+
const GITHUB_TOKEN = require('./token');
2+
// scripts/token.js:
3+
// const token = 'XXX';
4+
// module.exports = token;
5+
26
const LATEST_VERSION = '7.10.0';
37
const NEW_VERSION = '7.11.0';
48
const FILE_PREFIX = 'uilib';

src/assets/icons/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ export const icons = {
1717
get x() {
1818
return require('./x.png');
1919
},
20+
get xMedium() {
21+
return require('./xMedium.png');
22+
},
2023
get xFlat() {
2124
return require('./xFlat.png');
2225
}

src/assets/icons/xMedium.png

218 Bytes
Loading

src/assets/icons/[email protected]

256 Bytes
Loading

src/assets/icons/[email protected]

290 Bytes
Loading

src/assets/icons/[email protected]

390 Bytes
Loading

src/assets/icons/[email protected]

483 Bytes
Loading

0 commit comments

Comments
 (0)