6
6
Colors ,
7
7
View ,
8
8
Card ,
9
- CardPropTypes ,
9
+ CardProps ,
10
10
Button ,
11
11
Text ,
12
12
Image
@@ -47,7 +47,7 @@ export default class CardsScreen extends Component<
47
47
activeOpacity = { 1 }
48
48
marginR-20
49
49
>
50
- < Card . Section imageSource = { cardImage } imageStyle = { { height : '100%' } } />
50
+ < Card . Section source = { cardImage } imageStyle = { { height : '100%' } } />
51
51
</ Card >
52
52
< Card
53
53
height = { 120 }
@@ -61,7 +61,7 @@ export default class CardsScreen extends Component<
61
61
borderWidth : 3
62
62
} }
63
63
>
64
- < Card . Section imageSource = { cardImage } imageStyle = { { height : '100%' } } />
64
+ < Card . Section source = { cardImage } imageStyle = { { height : '100%' } } />
65
65
</ Card >
66
66
</ View >
67
67
) ;
@@ -122,14 +122,14 @@ export default class CardsScreen extends Component<
122
122
>
123
123
{ isImageOnLeft && (
124
124
< Card . Section
125
- imageSource = { cardImage }
125
+ source = { cardImage }
126
126
imageStyle = { { width : 115 , height : '100%' } }
127
127
/>
128
128
) }
129
129
{ useSection ? this . renderTextSection ( ) : this . renderText ( ) }
130
130
{ ! isImageOnLeft && (
131
131
< Card . Section
132
- imageSource = { cardImage }
132
+ source = { cardImage }
133
133
imageStyle = { { width : 115 , height : '100%' } }
134
134
/>
135
135
) }
@@ -147,12 +147,12 @@ export default class CardsScreen extends Component<
147
147
] }
148
148
style = { { padding : 20 } }
149
149
/>
150
- < Card . Section imageSource = { cardImage2 } imageStyle = { { height : 120 } } />
150
+ < Card . Section source = { cardImage2 } imageStyle = { { height : 120 } } />
151
151
</ Card >
152
152
) ;
153
153
} ;
154
154
155
- renderCoupon = ( cardProps : CardPropTypes ) => {
155
+ renderCoupon = ( cardProps : CardProps ) => {
156
156
return (
157
157
< Card
158
158
{ ...cardProps }
@@ -192,7 +192,7 @@ export default class CardsScreen extends Component<
192
192
) ;
193
193
} ;
194
194
195
- renderComplexImage = ( cardProps : CardPropTypes , image : React . ReactNode ) => {
195
+ renderComplexImage = ( cardProps : CardProps , image : React . ReactNode ) => {
196
196
return (
197
197
< Card
198
198
{ ...cardProps }
@@ -223,7 +223,7 @@ export default class CardsScreen extends Component<
223
223
< Card . Section
224
224
flex
225
225
backgroundColor = { Colors . blue20 }
226
- imageSource = { featureIcon }
226
+ source = { featureIcon }
227
227
imageStyle = { {
228
228
width : 25 ,
229
229
height : 25 ,
@@ -242,7 +242,7 @@ export default class CardsScreen extends Component<
242
242
{ 'marginL-5' : true } ,
243
243
< Card . Section
244
244
flex
245
- imageSource = { cardImage2 }
245
+ source = { cardImage2 }
246
246
imageStyle = { { height : '100%' } }
247
247
content = { [
248
248
{ text : 'Special sale!' , text70 : true , blue10 : true } ,
@@ -282,7 +282,7 @@ export default class CardsScreen extends Component<
282
282
) ;
283
283
} ;
284
284
285
- renderBackgroundCard = ( cardProps : CardPropTypes , body : React . ReactNode ) => {
285
+ renderBackgroundCard = ( cardProps : CardProps , body : React . ReactNode ) => {
286
286
return (
287
287
< Card flex center height = { 80 } { ...cardProps } >
288
288
{ body }
@@ -336,7 +336,7 @@ export default class CardsScreen extends Component<
336
336
onPress = { ( ) => console . log ( 'press on a card' ) }
337
337
>
338
338
< Card . Section
339
- imageSource = { post . coverImage }
339
+ source = { post . coverImage }
340
340
imageStyle = { { height : 160 } }
341
341
/>
342
342
0 commit comments