[Android] Image in PointAnnotation can't be shown on Android
See original GitHub issueTo Reproduce Should be starting from 7.0.5 Release
<View style={{height: 30, width: 21, backgroundColor: '#000'}}>
<Image source={require('../../images/map/school.png')} />
</View>
<MapboxGL.Callout title='xxx' />
</MapboxGL.PointAnnotation>
Screenshots
Versions (please complete the following information):
- Platfrom: Android
- Device: Asus Zenfone 5
- OS: Android 6
- SDK Version 28
- React Native Version 0.59
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:26 (8 by maintainers)
Top Results From Across the Web
[Android] Image in PointAnnotation can't be shown on ... - GitHub
On your Android emulator, go to the three-dots menu, and navigate to Settings > Advanced > OpenGL ES Renderer. Choose SwiftShader and restart...
Read more >pointannotation is not working in android - Stack Overflow
Run and install the app · The images on PointAnnotation are completely invisible · Change the height and width in real time and...
Read more >PointAnnotationOptions - Mapbox docs
PointAnnotation Options. Builder class from which a pointAnnotation is created. class PointAnnotationOptions : AnnotationOptions<Point, PointAnnotation>.
Read more >Mark a Coordinate on Mapbox Map in React Native
In Android, the child React Native View is captured into a static image and then displayed. So, for instance, you cannot place a...
Read more >rnmapbox/Lobby - Gitter
next question, it looks like PointAnnotation renders under other layers (this ... On android the layer id might-be: mapbox-android-symbol-layer-0 or ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Workaround is to wrap
<Image/>
with<Text/>
. Or as @RichardLindhout wrote to use SVG instead. Source: https://github.com/react-native-community/react-native-maps/issues/431#issuecomment-524321467Use like this
Guys did you find the solution on it? if YES please guide.