I have a custom marker image and want to use a variable for the opacity of the image. I doing the following and gettin this error "Value for opacity cannot be cast from ReadableNativeMap to double"
var status=1;
<MapView.Marker
key={marker.latitude}
coordinate={{ latitude: marker.latitude, longitude: marker.longitude }}
onPress={() => this.props.Quiz2(marker.latitude, marker.longitude)} >
<View><Image source={require('../assets/icons/quiz.png')} style={{ width: 40, height: 40,opacity:status}}/></View>
</MapView.Marker>
status = 1.0
instead. – GlobalAnimated.Image
instead ofImage
? – Ro