react-native-swiper icon indicating copy to clipboard operation
react-native-swiper copied to clipboard

Swiper shows grey background color on Android

Open lutakyn opened this issue 5 years ago • 2 comments

Which OS ?

Android OS

Version

Which versions are you using: Android Oreo

  • react-native-swiper v? 1.5.14
  • react-native v0.?.? 0.59.1

Expected behaviour

I expected the background to have no color since backgroundColor is set to transparent

Actual behaviour

Background color is grey on Android and not on IOS

Code

 <Swiper  height={150} style={{backgroundColor:'transparent',marginBottom:20}}
                        onMomentumScrollEnd={(e, state, context) => console.log('index:', 
 state.index)}
                        dot={<View style={{backgroundColor: 'red', width: 7, height: 7, borderRadius: 
 5, marginLeft: 2, marginRight: 2, marginTop: 2, marginBottom: 2}} />}
                        activeDot={<View style={{backgroundColor: 'black', width: 7, height: 7, 
 borderRadius: 5, marginLeft: 2, marginRight: 2, marginTop: 2, marginBottom: 2}} />}
                        paginationStyle={{bottom: 120, left: null, right: 10}} loop={true}>
                          <Card>
              
                            <View style= {{height:140,width:"80%",borderRadius:10,backgroundColor:'white',flexDirection:'column'}}>
                                <View style={{flexDirection:'row',marginLeft:15}}>
                                  <FontAwesome name='mobile' style={{color:'black',margin:5}} size={15}/>  
                                  <Text style={{color:'black',fontSize:12,margin:5,fontWeight:'bold'}}> My Phone</Text>
                                </View>
                                <View style={{flexDirection:'row',marginLeft:15,marginBottom:5,marginTop:20}}>
                                  <Text style={{fontSize:30}}>50</Text><Text style={{fontSize:20,marginTop:10}}>GB</Text><Text style={{fontSize:14,marginTop:17,margin:5}}>left of 70 GB left bundle</Text>
                                </View>
                                <View style={{justifyContent:'center',marginLeft:20,marginRight:20,marginTop:0}}>
                                  <ProgressBar barStyle={{borderTopRightRadius:10,borderBottomRightRadius:10}} progress={0.5} height={10} width={sliderWidth} color='red' unfilledColor='grey' animated={false} style={{borderRadius:5}}/>
                                </View>
                            </View>
                        </Card > 
   <Swiper/>
Screenshot 2019-03-20 at 11 22 57 AM

lutakyn avatar Mar 20 '19 11:03 lutakyn

This repo dead: https://github.com/leecade/react-native-swiper/issues/713

retyui avatar Mar 25 '19 09:03 retyui

这个回购死了:#713

Hello bro, is there any alternative plug-in?

Q-inyin avatar Feb 05 '24 06:02 Q-inyin