@@ -20,12 +20,12 @@ export function NestPagerView() {
20
20
>
21
21
< View
22
22
key = "1"
23
- style = { { backgroundColor : BGCOLOR [ 0 ] } }
23
+ style = { [ styles . page , { backgroundColor : BGCOLOR [ 0 ] } ] }
24
24
collapsable = { false }
25
25
>
26
26
< LikeCount />
27
27
</ View >
28
- < View key = "2" collapsable = { false } >
28
+ < View style = { styles . page } key = "2" collapsable = { false } >
29
29
< Text style = { styles . title } >
30
30
There has two Nest PagerView with horizontal and vertical.
31
31
</ Text >
@@ -39,15 +39,15 @@ export function NestPagerView() {
39
39
>
40
40
< View
41
41
key = "1"
42
- style = { { backgroundColor : BGCOLOR [ 1 ] } }
42
+ style = { [ styles . page , { backgroundColor : BGCOLOR [ 1 ] } ] }
43
43
collapsable = { false }
44
44
>
45
45
< LikeCount />
46
46
< Text > Horizontal</ Text >
47
47
</ View >
48
48
< View
49
49
key = "2"
50
- style = { { backgroundColor : BGCOLOR [ 2 ] } }
50
+ style = { [ styles . page , { backgroundColor : BGCOLOR [ 2 ] } ] }
51
51
collapsable = { false }
52
52
>
53
53
< LikeCount />
@@ -64,15 +64,15 @@ export function NestPagerView() {
64
64
>
65
65
< View
66
66
key = "1"
67
- style = { { backgroundColor : BGCOLOR [ 3 ] } }
67
+ style = { [ styles . page , { backgroundColor : BGCOLOR [ 3 ] } ] }
68
68
collapsable = { false }
69
69
>
70
70
< LikeCount />
71
71
< Text > Vertical</ Text >
72
72
</ View >
73
73
< View
74
74
key = "2"
75
- style = { { backgroundColor : BGCOLOR [ 4 ] } }
75
+ style = { [ styles . page , { backgroundColor : BGCOLOR [ 4 ] } ] }
76
76
collapsable = { false }
77
77
>
78
78
< LikeCount />
@@ -82,7 +82,7 @@ export function NestPagerView() {
82
82
</ View >
83
83
< View
84
84
key = "3"
85
- style = { { backgroundColor : BGCOLOR [ 3 ] } }
85
+ style = { [ styles . page , { backgroundColor : BGCOLOR [ 3 ] } ] }
86
86
collapsable = { false }
87
87
>
88
88
< LikeCount />
@@ -105,5 +105,8 @@ const styles = StyleSheet.create({
105
105
PagerView : {
106
106
flex : 1 ,
107
107
} ,
108
+ page : {
109
+ flex : 1 ,
110
+ } ,
108
111
title : { fontSize : 22 , paddingVertical : 10 } ,
109
112
} ) ;
0 commit comments