Selaa lähdekoodia

[大屏][修改][添加盒子阴影]】

tags/jenkins-front-end-screenad-233-v133^0
caserKing 5 vuotta sitten
vanhempi
commit
ece490cce3
1 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. +4
    -4
      App.js

+ 4
- 4
App.js Näytä tiedosto

@@ -58,13 +58,13 @@ var animationThemes = [
} }
] ]
const shadowOpt = { const shadowOpt = {
width: 700/PixelRatio.get(),
width: 703/PixelRatio.get(),
height: 240/PixelRatio.get(), height: 240/PixelRatio.get(),
color:"#000", color:"#000",
border:2, border:2,
radius:3, radius:3,
opacity:0.5, opacity:0.5,
x:0,
x:2,
y:3, y:3,
style:{marginVertical:5} style:{marginVertical:5}
} }
@@ -656,7 +656,7 @@ getAdView(){
</ImageBackground> </ImageBackground>
); );
} else if (this.state.adType == 2) { } else if (this.state.adType == 2) {
let curWidthNum = 700/(PixelRatio.get())
let curWidthNum = 710/(PixelRatio.get())
return ( return (
// <ImageBackground style={styles.adTypeBg} source={require('./image/ad1.jpg')}> // <ImageBackground style={styles.adTypeBg} source={require('./image/ad1.jpg')}>
<ImageBackground style={styles.adTypeBg} resizeMode="stretch" source={{ uri: this.state.curCoverImgUrl}}> <ImageBackground style={styles.adTypeBg} resizeMode="stretch" source={{ uri: this.state.curCoverImgUrl}}>
@@ -1198,7 +1198,7 @@ MyPage = CodePush(codePushOptions)(MyPage);
alignItems: 'center', alignItems: 'center',
position: 'absolute', position: 'absolute',
left: 0, left: 0,
bottom: 165/PixelRatio.get(),
bottom: 70/PixelRatio.get(),
width: '100%', width: '100%',
height: 369/PixelRatio.get(), height: 369/PixelRatio.get(),
}, },


Ladataan…
Peruuta
Tallenna