Skip to content

Commit cb028a7

Browse files
committed
[unit-testing] Fixed the manu component animation and touch issue
1 parent e3b164c commit cb028a7

File tree

15 files changed

+1287
-1144
lines changed

15 files changed

+1287
-1144
lines changed

src/packages/react-native-material-elements/__test__/__snapshots__/Backdrop.test.tsx.snap

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -46,29 +46,24 @@ exports[`Backdrop should render correctly 1`] = `
4646
}
4747
>
4848
<View
49-
accessibilityState={
49+
collapsable={false}
50+
onLayout={[Function]}
51+
style={
5052
{
51-
"busy": undefined,
52-
"checked": undefined,
53-
"disabled": undefined,
54-
"expanded": undefined,
55-
"selected": undefined,
53+
"transform": [
54+
{
55+
"scale": 0.95,
56+
},
57+
],
5658
}
5759
}
58-
accessible={false}
59-
focusable={false}
60-
onClick={[Function]}
61-
onResponderGrant={[Function]}
62-
onResponderMove={[Function]}
63-
onResponderRelease={[Function]}
64-
onResponderTerminate={[Function]}
65-
onResponderTerminationRequest={[Function]}
66-
onStartShouldSetResponder={[Function]}
6760
>
68-
<ActivityIndicator
69-
color="#FAFAFA"
70-
size="large"
71-
/>
61+
<View>
62+
<ActivityIndicator
63+
color="#FAFAFA"
64+
size="large"
65+
/>
66+
</View>
7267
</View>
7368
</View>
7469
</Modal>

src/packages/react-native-material-elements/__test__/__snapshots__/Dialog.test.tsx.snap

Lines changed: 42 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -48,38 +48,52 @@ exports[`Dialog should render correctly with default props 1`] = `
4848
}
4949
>
5050
<View
51-
accessibilityState={
51+
collapsable={false}
52+
onLayout={[Function]}
53+
style={
5254
{
53-
"busy": undefined,
54-
"checked": undefined,
55-
"disabled": undefined,
56-
"expanded": undefined,
57-
"selected": undefined,
55+
"transform": [
56+
{
57+
"scale": 0.95,
58+
},
59+
],
5860
}
5961
}
60-
accessible={false}
61-
focusable={false}
62-
onClick={[Function]}
63-
onResponderGrant={[Function]}
64-
onResponderMove={[Function]}
65-
onResponderRelease={[Function]}
66-
onResponderTerminate={[Function]}
67-
onResponderTerminationRequest={[Function]}
68-
onStartShouldSetResponder={[Function]}
69-
style={
70-
[
71-
{},
72-
{},
62+
>
63+
<View
64+
accessibilityState={
7365
{
74-
"backgroundColor": "#424242",
75-
"borderRadius": 10,
76-
"maxWidth": "90%",
77-
"paddingBottom": 8,
78-
"zIndex": 100,
79-
},
80-
]
81-
}
82-
/>
66+
"busy": undefined,
67+
"checked": undefined,
68+
"disabled": undefined,
69+
"expanded": undefined,
70+
"selected": undefined,
71+
}
72+
}
73+
accessible={false}
74+
focusable={false}
75+
onClick={[Function]}
76+
onResponderGrant={[Function]}
77+
onResponderMove={[Function]}
78+
onResponderRelease={[Function]}
79+
onResponderTerminate={[Function]}
80+
onResponderTerminationRequest={[Function]}
81+
onStartShouldSetResponder={[Function]}
82+
style={
83+
[
84+
{},
85+
{},
86+
{
87+
"backgroundColor": "#424242",
88+
"borderRadius": 10,
89+
"maxWidth": "90%",
90+
"paddingBottom": 8,
91+
"zIndex": 100,
92+
},
93+
]
94+
}
95+
/>
96+
</View>
8397
</View>
8498
</Modal>
8599
`;

src/packages/react-native-material-elements/__test__/__snapshots__/Divider.test.tsx.snap

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,12 @@ exports[`Divider Component should render correctly 1`] = `
2323
style={
2424
[
2525
{
26-
"borderWidth": 0.9,
26+
"borderWidth": 0.5,
2727
},
2828
{
2929
"borderColor": "#616161",
3030
"borderEndWidth": 0,
31+
"borderStartWidth": 0,
3132
"flex": 1,
3233
},
3334
undefined,
@@ -39,10 +40,11 @@ exports[`Divider Component should render correctly 1`] = `
3940
style={
4041
[
4142
{
42-
"borderWidth": 0.9,
43+
"borderWidth": 0.5,
4344
},
4445
{
4546
"borderColor": "#616161",
47+
"borderEndWidth": 0,
4648
"borderStartWidth": 0,
4749
"flex": 1,
4850
},
@@ -77,11 +79,12 @@ exports[`Divider Component should render the children correctly 1`] = `
7779
style={
7880
[
7981
{
80-
"borderWidth": 0.9,
82+
"borderWidth": 0.5,
8183
},
8284
{
8385
"borderColor": "#616161",
8486
"borderEndWidth": 0,
87+
"borderStartWidth": 0,
8588
"flex": 1,
8689
},
8790
undefined,
@@ -99,10 +102,11 @@ exports[`Divider Component should render the children correctly 1`] = `
99102
style={
100103
[
101104
{
102-
"borderWidth": 0.9,
105+
"borderWidth": 0.5,
103106
},
104107
{
105108
"borderColor": "#616161",
109+
"borderEndWidth": 0,
106110
"borderStartWidth": 0,
107111
"flex": 1,
108112
},

0 commit comments

Comments
 (0)