unicorn-demo-app 7.43.0 → 7.44.0-snapshot.7204
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/scripts/releaseDemo.js +8 -1
- package/src/index.js +1 -2
- package/src/screens/MenuStructure.js +9 -10
- package/src/screens/__tests__/__snapshots__/TextFieldScreen.spec.js.snap +96 -30
- package/src/screens/componentScreens/AnimatedImageScreen.js +2 -2
- package/src/screens/componentScreens/CarouselVerticalScreen.tsx +2 -2
- package/src/screens/componentScreens/SortableListScreen.tsx +1 -1
- package/src/screens/componentScreens/StackAggregatorScreen.tsx +1 -1
- package/src/screens/componentScreens/TabControllerScreen/tab3.tsx +1 -1
- package/src/screens/incubatorScreens/PanViewScreen.tsx +3 -3
- package/src/screens/nativeComponentScreens/HighlightOverlayViewScreen.js +4 -1
- package/src/screens/nativeComponentScreens/SafeAreaSpacerViewScreen.tsx +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unicorn-demo-app",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.44.0-snapshot.7204",
|
|
4
4
|
"main": "src/index.js",
|
|
5
5
|
"author": "Ethan Sharabi <ethan.shar@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"react": "^18.2.0",
|
|
26
|
-
"react-native": "^0.
|
|
26
|
+
"react-native": "^0.76.9",
|
|
27
27
|
"react-native-ui-lib": "*",
|
|
28
28
|
"semver": "^5.5.0"
|
|
29
29
|
}
|
package/scripts/releaseDemo.js
CHANGED
|
@@ -17,8 +17,11 @@ const VERSION_INC = 'patch';
|
|
|
17
17
|
|
|
18
18
|
function run() {
|
|
19
19
|
if (!validateEnv()) {
|
|
20
|
+
console.log('Do not release demo');
|
|
20
21
|
return;
|
|
21
22
|
}
|
|
23
|
+
|
|
24
|
+
console.log('Release demo');
|
|
22
25
|
createNpmRc();
|
|
23
26
|
versionTagAndPublish();
|
|
24
27
|
}
|
|
@@ -27,7 +30,11 @@ function validateEnv() {
|
|
|
27
30
|
if (!process.env.CI) {
|
|
28
31
|
throw new Error('releasing is only available from CI');
|
|
29
32
|
}
|
|
30
|
-
return
|
|
33
|
+
return (
|
|
34
|
+
process.env.BUILDKITE_BRANCH === 'master' ||
|
|
35
|
+
process.env.BUILDKITE_BRANCH === 'release' ||
|
|
36
|
+
process.env.BUILDKITE_MESSAGE === 'snapshot'
|
|
37
|
+
);
|
|
31
38
|
}
|
|
32
39
|
|
|
33
40
|
function createNpmRc() {
|
package/src/index.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {I18nManager} from 'react-native';
|
|
2
2
|
import {navigationData as menuStructure} from './screens/MenuStructure';
|
|
3
3
|
import {loadDemoConfigurations} from './configurations';
|
|
4
4
|
|
|
5
|
-
UIManager.setLayoutAnimationEnabledExperimental && UIManager.setLayoutAnimationEnabledExperimental(true); // eslint-disable-line
|
|
6
5
|
I18nManager.allowRTL(true);
|
|
7
6
|
|
|
8
7
|
module.exports = {
|
|
@@ -86,7 +86,7 @@ export const navigationData = {
|
|
|
86
86
|
screens: [
|
|
87
87
|
{title: 'Action Sheet', tags: 'action sheet cross-platform', screen: 'unicorn.components.ActionSheetScreen'},
|
|
88
88
|
{title: 'Dialog', tags: 'dialog modal popup alert', screen: 'unicorn.components.DialogScreen'},
|
|
89
|
-
{title: 'Feature Highlight', tags: 'feature overlay', screen: 'unicorn.components.FeatureHighlightScreen'},
|
|
89
|
+
{title: 'Feature Highlight', tags: 'native feature overlay', screen: 'unicorn.components.FeatureHighlightScreen'},
|
|
90
90
|
{title: 'Floating Button', tags: 'floating button', screen: 'unicorn.components.FloatingButtonScreen'},
|
|
91
91
|
{title: 'Hint', tags: 'hints tooltip', screen: 'unicorn.components.HintsScreen'},
|
|
92
92
|
{title: 'Toast', tags: 'toast top bottom snackbar', screen: 'unicorn.components.ToastsScreen'}
|
|
@@ -122,10 +122,10 @@ export const navigationData = {
|
|
|
122
122
|
{title: 'LoadingScreen', tags: 'loading screen', screen: 'unicorn.screens.LoadingScreen'},
|
|
123
123
|
{title: 'Modal', tags: 'modal topbar screen', screen: 'unicorn.screens.ModalScreen'},
|
|
124
124
|
{title: 'StateScreen', tags: 'empty state screen', screen: 'unicorn.screens.EmptyStateScreen'},
|
|
125
|
-
{title: 'TabController', tags: 'tabbar controller
|
|
125
|
+
{title: 'TabController', tags: 'tabbar controller', screen: 'unicorn.components.TabControllerScreen'},
|
|
126
126
|
{
|
|
127
127
|
title: 'TabControllerWithStickyHeader',
|
|
128
|
-
tags: 'tabbar controller
|
|
128
|
+
tags: 'tabbar controller sticky header',
|
|
129
129
|
screen: 'unicorn.components.TabControllerWithStickyHeaderScreen'
|
|
130
130
|
},
|
|
131
131
|
{title: 'Timeline', tags: 'timeline', screen: 'unicorn.components.TimelineScreen'},
|
|
@@ -153,28 +153,28 @@ export const navigationData = {
|
|
|
153
153
|
screens: [
|
|
154
154
|
{
|
|
155
155
|
title: 'KeyboardAwareScrollView',
|
|
156
|
-
tags: 'KeyboardAwareScrollView',
|
|
156
|
+
tags: 'native KeyboardAwareScrollView',
|
|
157
157
|
screen: 'unicorn.components.KeyboardAwareScrollViewScreen'
|
|
158
158
|
},
|
|
159
159
|
{
|
|
160
160
|
title: 'Dynamic Fonts',
|
|
161
|
-
tags: 'dynamic fonts load download',
|
|
161
|
+
tags: 'native dynamic fonts load download',
|
|
162
162
|
screen: 'unicorn.nativeComponents.DynamicFontsScreen'
|
|
163
163
|
},
|
|
164
164
|
{
|
|
165
165
|
title: 'Highlight Overlay',
|
|
166
|
-
tags: 'native overlay',
|
|
166
|
+
tags: 'native native overlay',
|
|
167
167
|
screen: 'unicorn.nativeComponents.HighlightOverlayViewScreen'
|
|
168
168
|
},
|
|
169
169
|
{title: 'SafeArea Spacer', tags: 'native safe area', screen: 'unicorn.nativeComponents.SafeAreaSpacerViewScreen'},
|
|
170
170
|
{
|
|
171
171
|
title: 'KeyboardTracking (iOS)',
|
|
172
|
-
tags: 'KeyboardTracking',
|
|
172
|
+
tags: 'native KeyboardTracking',
|
|
173
173
|
screen: 'unicorn.nativeComponents.KeyboardTrackingViewScreen'
|
|
174
174
|
},
|
|
175
175
|
{
|
|
176
176
|
title: 'KeyboardAccessoryView',
|
|
177
|
-
tags: 'KeyboardInput',
|
|
177
|
+
tags: 'native KeyboardInput',
|
|
178
178
|
screen: 'unicorn.nativeComponents.KeyboardAccessoryViewScreen'
|
|
179
179
|
}
|
|
180
180
|
]
|
|
@@ -200,8 +200,7 @@ export const navigationData = {
|
|
|
200
200
|
screens: [
|
|
201
201
|
{title: 'Calendar', tags: 'calendar', screen: 'unicorn.components.IncubatorCalendarScreen'},
|
|
202
202
|
{title: 'ChipsInput', tags: 'chips input', screen: 'unicorn.components.ChipsInputScreen'},
|
|
203
|
-
{title: 'Native TouchableOpacity', tags: 'touchable
|
|
204
|
-
{title: 'Dialog (New)', tags: 'dialog modal popup alert', screen: 'unicorn.incubator.IncubatorDialogScreen'},
|
|
203
|
+
{title: 'Native TouchableOpacity', tags: 'native touchable', screen: 'unicorn.incubator.TouchableOpacityScreen'},
|
|
205
204
|
{title: 'Toast (New)', tags: 'toast', screen: 'unicorn.components.IncubatorToastScreen'},
|
|
206
205
|
{
|
|
207
206
|
title: 'ExpandableOverlay',
|
|
@@ -1522,16 +1522,38 @@ exports[`TextField Screen renders screen 1`] = `
|
|
|
1522
1522
|
numberOfLines={1}
|
|
1523
1523
|
onLayout={[Function]}
|
|
1524
1524
|
style={
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1525
|
+
[
|
|
1526
|
+
{
|
|
1527
|
+
"backgroundColor": "transparent",
|
|
1528
|
+
"color": "#20303C",
|
|
1529
|
+
"writingDirection": "ltr",
|
|
1530
|
+
},
|
|
1531
|
+
undefined,
|
|
1532
|
+
{
|
|
1533
|
+
"color": "#6E7881",
|
|
1534
|
+
},
|
|
1535
|
+
undefined,
|
|
1536
|
+
undefined,
|
|
1537
|
+
{},
|
|
1538
|
+
undefined,
|
|
1539
|
+
undefined,
|
|
1540
|
+
undefined,
|
|
1541
|
+
[
|
|
1542
|
+
{},
|
|
1543
|
+
[
|
|
1544
|
+
{},
|
|
1545
|
+
{
|
|
1546
|
+
"fontFamily": "System",
|
|
1547
|
+
"fontSize": 16,
|
|
1548
|
+
"fontWeight": "400",
|
|
1549
|
+
"lineHeight": 24,
|
|
1550
|
+
},
|
|
1551
|
+
],
|
|
1552
|
+
{
|
|
1553
|
+
"opacity": 0,
|
|
1554
|
+
},
|
|
1555
|
+
],
|
|
1556
|
+
]
|
|
1535
1557
|
}
|
|
1536
1558
|
testID="undefined.floatingPlaceholder"
|
|
1537
1559
|
>
|
|
@@ -2118,16 +2140,38 @@ exports[`TextField Screen renders screen 1`] = `
|
|
|
2118
2140
|
numberOfLines={1}
|
|
2119
2141
|
onLayout={[Function]}
|
|
2120
2142
|
style={
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2143
|
+
[
|
|
2144
|
+
{
|
|
2145
|
+
"backgroundColor": "transparent",
|
|
2146
|
+
"color": "#20303C",
|
|
2147
|
+
"writingDirection": "ltr",
|
|
2148
|
+
},
|
|
2149
|
+
undefined,
|
|
2150
|
+
{
|
|
2151
|
+
"color": "#20303C",
|
|
2152
|
+
},
|
|
2153
|
+
undefined,
|
|
2154
|
+
undefined,
|
|
2155
|
+
{},
|
|
2156
|
+
undefined,
|
|
2157
|
+
undefined,
|
|
2158
|
+
undefined,
|
|
2159
|
+
[
|
|
2160
|
+
{},
|
|
2161
|
+
[
|
|
2162
|
+
{},
|
|
2163
|
+
{
|
|
2164
|
+
"fontFamily": "System",
|
|
2165
|
+
"fontSize": 16,
|
|
2166
|
+
"fontWeight": "400",
|
|
2167
|
+
"lineHeight": 24,
|
|
2168
|
+
},
|
|
2169
|
+
],
|
|
2170
|
+
{
|
|
2171
|
+
"opacity": 0,
|
|
2172
|
+
},
|
|
2173
|
+
],
|
|
2174
|
+
]
|
|
2131
2175
|
}
|
|
2132
2176
|
testID="undefined.floatingPlaceholder"
|
|
2133
2177
|
>
|
|
@@ -2433,16 +2477,38 @@ exports[`TextField Screen renders screen 1`] = `
|
|
|
2433
2477
|
numberOfLines={1}
|
|
2434
2478
|
onLayout={[Function]}
|
|
2435
2479
|
style={
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2480
|
+
[
|
|
2481
|
+
{
|
|
2482
|
+
"backgroundColor": "transparent",
|
|
2483
|
+
"color": "#20303C",
|
|
2484
|
+
"writingDirection": "ltr",
|
|
2485
|
+
},
|
|
2486
|
+
undefined,
|
|
2487
|
+
{
|
|
2488
|
+
"color": "#20303C",
|
|
2489
|
+
},
|
|
2490
|
+
undefined,
|
|
2491
|
+
undefined,
|
|
2492
|
+
{},
|
|
2493
|
+
undefined,
|
|
2494
|
+
undefined,
|
|
2495
|
+
undefined,
|
|
2496
|
+
[
|
|
2497
|
+
{},
|
|
2498
|
+
[
|
|
2499
|
+
{},
|
|
2500
|
+
{
|
|
2501
|
+
"fontFamily": "System",
|
|
2502
|
+
"fontSize": 16,
|
|
2503
|
+
"fontWeight": "400",
|
|
2504
|
+
"lineHeight": 24,
|
|
2505
|
+
},
|
|
2506
|
+
],
|
|
2507
|
+
{
|
|
2508
|
+
"opacity": 0,
|
|
2509
|
+
},
|
|
2510
|
+
],
|
|
2511
|
+
]
|
|
2446
2512
|
}
|
|
2447
2513
|
testID="undefined.floatingPlaceholder"
|
|
2448
2514
|
>
|
|
@@ -4,8 +4,8 @@ import _ from 'lodash';
|
|
|
4
4
|
import {AnimatedImage, Colors} from 'react-native-ui-lib'; //eslint-disable-line
|
|
5
5
|
|
|
6
6
|
const SampleImages = [
|
|
7
|
-
'https://
|
|
8
|
-
'https://
|
|
7
|
+
'https://images.pexels.com/photos/2529146/pexels-photo-2529146.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500',
|
|
8
|
+
'https://images.pexels.com/photos/2529158/pexels-photo-2529158.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500'
|
|
9
9
|
];
|
|
10
10
|
|
|
11
11
|
export default class AnimatedImageScreen extends Component {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {Carousel, Constants, Text, View, Colors} from 'react-native-ui-lib';
|
|
2
2
|
import React, {Component} from 'react';
|
|
3
|
-
import {StyleSheet, Animated
|
|
3
|
+
import {StyleSheet, Animated} from 'react-native';
|
|
4
4
|
import _ from 'lodash';
|
|
5
5
|
import {renderBooleanOption, renderSliderOption} from '../ExampleScreenPresenter';
|
|
6
6
|
|
|
@@ -58,7 +58,7 @@ class CarouselVerticalScreen extends Component<{}, State> {
|
|
|
58
58
|
return (
|
|
59
59
|
<View absT>
|
|
60
60
|
{_.times(numberOfPagesShown, page => (
|
|
61
|
-
<Text key={page} h1 animated style={[styles.animatedPageCounter, animatedStyles[page]]
|
|
61
|
+
<Text key={page} h1 animated style={[styles.animatedPageCounter, animatedStyles[page]]}>
|
|
62
62
|
{page}
|
|
63
63
|
</Text>
|
|
64
64
|
))}
|
|
@@ -129,7 +129,7 @@ export default SortableListScreen;
|
|
|
129
129
|
const styles = StyleSheet.create({
|
|
130
130
|
itemContainer: {
|
|
131
131
|
height: 52,
|
|
132
|
-
|
|
132
|
+
borderBottomColor: Colors.$outlineDefault,
|
|
133
133
|
borderBottomWidth: 1
|
|
134
134
|
},
|
|
135
135
|
selectedItemContainer: {
|
|
@@ -68,7 +68,7 @@ export default class StackAggregatorScreen extends Component {
|
|
|
68
68
|
containerStyle={{marginTop: 12}}
|
|
69
69
|
onItemPress={this.onItemPress}
|
|
70
70
|
collapsed={false}
|
|
71
|
-
|
|
71
|
+
backgroundColor={Colors.red70}
|
|
72
72
|
// itemBorderRadius={10}
|
|
73
73
|
// buttonProps={{color: Colors.green30, labelStyle: {...Typography.text80, fontWeight: '500'}}}
|
|
74
74
|
>
|
|
@@ -62,7 +62,7 @@ class Tab2 extends Component {
|
|
|
62
62
|
<Avatar
|
|
63
63
|
size={50}
|
|
64
64
|
source={{
|
|
65
|
-
uri: 'https://
|
|
65
|
+
uri: 'https://images.pexels.com/photos/2529159/pexels-photo-2529159.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500'
|
|
66
66
|
}}
|
|
67
67
|
/>
|
|
68
68
|
<Text text40 marginL-20>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, {Component} from 'react';
|
|
2
2
|
import {StyleSheet, ScrollView} from 'react-native';
|
|
3
|
-
import {FlatList} from 'react-native-gesture-handler';
|
|
3
|
+
import {FlatList, GestureHandlerRootView} from 'react-native-gesture-handler';
|
|
4
4
|
import {
|
|
5
5
|
Assets,
|
|
6
6
|
View,
|
|
@@ -147,7 +147,7 @@ class PanViewScreen extends Component {
|
|
|
147
147
|
render() {
|
|
148
148
|
const {showToast, showDialog} = this.state;
|
|
149
149
|
return (
|
|
150
|
-
<
|
|
150
|
+
<GestureHandlerRootView style={styles.root}>
|
|
151
151
|
<View marginL-page height={50} centerV>
|
|
152
152
|
<Text text50>New Pan View</Text>
|
|
153
153
|
</View>
|
|
@@ -163,7 +163,7 @@ class PanViewScreen extends Component {
|
|
|
163
163
|
</ScrollView>
|
|
164
164
|
{showToast && this.renderToast()}
|
|
165
165
|
{showDialog && this.renderDialog()}
|
|
166
|
-
</
|
|
166
|
+
</GestureHandlerRootView>
|
|
167
167
|
);
|
|
168
168
|
}
|
|
169
169
|
}
|
|
@@ -16,7 +16,10 @@ export default class HighlightOverlayViewScreen extends PureComponent {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
componentDidMount() {
|
|
19
|
-
|
|
19
|
+
// setting timeout to allow Android's transition animation to complete
|
|
20
|
+
setTimeout(() => {
|
|
21
|
+
this.setState({showFTE: true});
|
|
22
|
+
}, 1000);
|
|
20
23
|
}
|
|
21
24
|
|
|
22
25
|
onRefUpdated(ref) {
|
|
@@ -23,6 +23,7 @@ export default class SafeAreaSpacerViewScreen extends PureComponent {
|
|
|
23
23
|
<Text red50> SafeAreaSpacerView </Text>
|
|
24
24
|
{'can be used as a BOTTOM or TOP spacer and will get the height of the safe area insets'}
|
|
25
25
|
</Text>
|
|
26
|
+
<SafeAreaSpacerView style={{width: 100, backgroundColor: 'red'}}/>
|
|
26
27
|
</View>
|
|
27
28
|
</ScrollView>
|
|
28
29
|
<View style={styles.topView}>
|