问题标签 [nsnull]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
92 浏览

javascript - 执行 UI 块时抛出异常:[NSNull doubleValue]: unrecognized selector sent to instance 0x204329c00

我正在尝试在地图上显示相对于特定坐标的图标,但我不断抛出此错误,然后是:

这将不允许图钉显示在地图上。下面是我的代码:

使用 react-native-svg 创建图标

//useEffect 获取餐厅坐标

...

//如何在 MapView 中呈现