Ver código fonte

【大屏】【修改】【取消盒子阴影尝试】

tags/jenkins-front-end-screenad-278-^0
caserKing 5 anos atrás
pai
commit
8e63cc2d54
1 arquivos alterados com 6 adições e 4 exclusões
  1. +6
    -4
      App.js

+ 6
- 4
App.js Ver arquivo

@@ -21,7 +21,7 @@ import DeviceInfo from "react-native-device-info";
import * as Animatable from 'react-native-animatable'; import * as Animatable from 'react-native-animatable';
import Swiper from 'react-native-swiper'; import Swiper from 'react-native-swiper';
import Carousel from 'react-native-snap-carousel'; import Carousel from 'react-native-snap-carousel';
import {BoxShadow} from 'react-native-shadow';
// import {BoxShadow} from 'react-native-shadow';


var testMac = 'FF:FF:FF:FF:FF:FF' var testMac = 'FF:FF:FF:FF:FF:FF'
var curAdIndex = 0; var curAdIndex = 0;
@@ -559,7 +559,8 @@ setSwiperItemDom(item) {
} }
return ( return (
<View style={styles.carouselItemWrap}> <View style={styles.carouselItemWrap}>
<BoxShadow setting={shadowOpt}>
{/* <BoxShadow setting={shadowOpt}> */}
<View setting={shadowOpt}>
<View style={styles.contentItemTopForAd} key={index}> <View style={styles.contentItemTopForAd} key={index}>
<Image source={curLogo} resizeMode='center' style={styles.contentItemUpLayerLogo} /> <Image source={curLogo} resizeMode='center' style={styles.contentItemUpLayerLogo} />
@@ -587,7 +588,8 @@ setSwiperItemDom(item) {
</View> </View>
</BoxShadow>
</View>
{/* </BoxShadow> */}
</View> </View>
) )
} }
@@ -689,7 +691,7 @@ getAdView(){
resizeMode="stretch" source={{uri: this.state.previewImg}}> resizeMode="stretch" source={{uri: this.state.previewImg}}>
</Image> </Image>


<Animatable.View animation="slideInDown" style={styles.adWrap} key={this.state.coverImgUrl}>
<Animatable.View animation="fadeIn" style={styles.adWrap} key={this.state.coverImgUrl}>
{this.rendDefaultImg()} {this.rendDefaultImg()}
</Animatable.View> </Animatable.View>


Carregando…
Cancelar
Salvar