Skip to content

Commit 9d68d7e

Browse files
committed
Refactoring on DraggableView
1 parent b26b780 commit 9d68d7e

File tree

5 files changed

+52
-130
lines changed

5 files changed

+52
-130
lines changed

__tests__/__snapshots__/Dialog.test.js.snap

-86
Original file line numberDiff line numberDiff line change
@@ -64,46 +64,6 @@ exports[`should render with PopupDialog with Overlay 1`] = `
6464
>
6565
<react-native-mock>
6666
<DraggableView
67-
backdrop={
68-
<Backdrop
69-
animationDuration={150}
70-
backgroundColor="#000"
71-
onPress={[Function]}
72-
opacity={0.5}
73-
pointerEvents="none"
74-
useNativeDriver={true}
75-
visible={false}
76-
/>
77-
}
78-
content={
79-
<AnimatedComponent
80-
style={
81-
Array [
82-
Object {
83-
"backgroundColor": "#ffffff",
84-
"overflow": "hidden",
85-
},
86-
Object {
87-
"borderRadius": 8,
88-
},
89-
Object {
90-
"height": null,
91-
"width": null,
92-
},
93-
null,
94-
Object {
95-
"opacity": AnimatedValue {
96-
"_animation": null,
97-
"_children": Array [],
98-
"_listeners": Object {},
99-
"_offset": 0,
100-
"_value": 0,
101-
},
102-
},
103-
]
104-
}
105-
/>
106-
}
10767
onMove={[Function]}
10868
onRelease={[Function]}
10969
onSwipeOut={null}
@@ -156,16 +116,13 @@ exports[`should render with PopupDialog with Overlay 1`] = `
156116
style={
157117
Object {
158118
"backgroundColor": "#000",
159-
"height": 2304,
160119
"opacity": AnimatedValue {
161120
"_animation": null,
162121
"_children": Array [],
163122
"_listeners": Object {},
164123
"_offset": 0,
165124
"_value": 0,
166125
},
167-
"position": "absolute",
168-
"width": 960,
169126
}
170127
}
171128
>
@@ -294,46 +251,6 @@ exports[`should render with PopupDialog without Overlay 1`] = `
294251
>
295252
<react-native-mock>
296253
<DraggableView
297-
backdrop={
298-
<Backdrop
299-
animationDuration={150}
300-
backgroundColor="#000"
301-
onPress={[Function]}
302-
opacity={0.5}
303-
pointerEvents="none"
304-
useNativeDriver={true}
305-
visible={false}
306-
/>
307-
}
308-
content={
309-
<AnimatedComponent
310-
style={
311-
Array [
312-
Object {
313-
"backgroundColor": "#ffffff",
314-
"overflow": "hidden",
315-
},
316-
Object {
317-
"borderRadius": 8,
318-
},
319-
Object {
320-
"height": null,
321-
"width": null,
322-
},
323-
null,
324-
Object {
325-
"opacity": AnimatedValue {
326-
"_animation": null,
327-
"_children": Array [],
328-
"_listeners": Object {},
329-
"_offset": 0,
330-
"_value": 0,
331-
},
332-
},
333-
]
334-
}
335-
/>
336-
}
337254
onMove={[Function]}
338255
onRelease={[Function]}
339256
onSwipeOut={null}
@@ -386,16 +303,13 @@ exports[`should render with PopupDialog without Overlay 1`] = `
386303
style={
387304
Object {
388305
"backgroundColor": "#000",
389-
"height": 2304,
390306
"opacity": AnimatedValue {
391307
"_animation": null,
392308
"_children": Array [],
393309
"_listeners": Object {},
394310
"_offset": 0,
395311
"_value": 0,
396312
},
397-
"position": "absolute",
398-
"width": 960,
399313
}
400314
}
401315
>

0 commit comments

Comments
 (0)