shadowOffset 在本机反应中不起作用 android

shadowOffset is not working in react native android

shadowOffset 在 android react native 中对我不起作用。

这是我的代码,

<View style={styles.viewimage}>
   <Image
       style={styles.picture}
       source={require('../../../assets/img/vijy.jpg')}
   />
</View>

风格:

viewimage:{
  backgroundColor:'yellow',
  shadowOffset:
   { 
    width: 10,
    height: 10,  
  },
  shadowColor: 'black',
  shadowOpacity: 1.0,
 },
viewimage: {
  backgroundColor: '#fff',
  shadowColor:'black',
  shadowOffset: {
    width: 0,
    height: 3
  },
  shadowRadius: 5,
  shadowOpacity: 1.0,
  elevation: 5
},

这行得通。 elevation:5 Android 剩余属性 iOS。