React Native Maps-自定义标记图像未在更高的Android版本中呈现 [英] React Native Maps - Custom Marker Image Not rendering in Higher Android Versions

查看:81
本文介绍了React Native Maps-自定义标记图像未在更高的Android版本中呈现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

图像未显示在标记上.

我正在使用React-Native开发适用于Android的应用,该应用使用

Hi, I'm developing an app for Android using the React-Native, that uses the react-native-maps package.

除Android 7.1+以外,所有平台均可正常运行.

All platforms run without any problem, except on Android 7.1+.

标记中包含的所有图像都不会显示/加载

All images contained on Markers are not shown/loaded

在标记组件中,有一个名为"image"的道具,该道具只能与本地图像一起使用.但就我而言,我需要渲染远程图像网址,因此我无法使用此道具,因此我决定使用自定义标记 直到我在Android更高版本中测试我的应用

In Marker Component there is prop called "image" which can be used only with local images. but in my case I need to render remote image Url so i am not able to use this props So i decided to use custom Marker It was working fine until I tested my app in Higher Android version

推荐答案

自以来已解决,react-native-maps包含此修复程序的新更新.所以现在我可以在地图中渲染动态图像了

Its been resolved since , react-native-maps new update which include the fix. So now I am able to render dynamic Images in maps

这篇关于React Native Maps-自定义标记图像未在更高的Android版本中呈现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆