folofse / androw

Shadows in React Native for Android
97 stars 16 forks source link

is shadow position works different as per android version?? #7

Closed ydv0121 closed 5 years ago

ydv0121 commented 5 years ago

i have implement shadow and run the project but it will show diffrent position as per android version like in android 9.0(pie) it's perfect.. but below android 9(pie) like android 7(nougat) android 8(oreo).. it's diffrent from same code

is there issue or it will actually work like that???

here is my example and screenshot:

<Androw style={Platform.OS == 'android'?styles.shadow:null}> <View style={{height:100,width:100,backgroundColor:'grey',justifyContent:'center',alignItems:'center'}}> <TouchableOpacity onPress={()=>alert('ok')}> <Image style={{height:50,width: 50}} source={{ uri: 'http://pngimg.com/uploads/google/google_PNG19645.png', }} /></TouchableOpacity> </View> </Androw>

Android 9(Pie)

Screenshot_20190610-100742_shadow

Android 8(Oreo)

Screenshot_20190610-100629

ydv0121 commented 5 years ago

one more thing i notice is that shadowOpacity not affecting ..if i change to 0.4 to 1 OR 1 to 0.4 it will same

folofse commented 5 years ago

New version available. Fixed positions and opacity.

ydv0121 commented 5 years ago

yes checked out..it's working properly.. thank you @folofse for listening on issues and provide new update very shortly thank you buddy ...it's perfect package let's spread shadow.

HappyShadow