gpt4 book ai didi

javascript - 错误 : Tried to register two views with the same name AIRMap. .. 实现 react-native-maps

转载 作者:行者123 更新时间:2023-11-30 06:19:12 41 4
gpt4 key购买 nike

我使用 react-native-maps,这是我的代码:

import { Marker} from 'react-native-maps';
import { MapView} from 'expo';
<MapView
style={{ flex: 1, height: 300 }}
initialRegion={{
latitude: 37.78825,
longitude: -122.4324,
latitudeDelta: 0.0922,
longitudeDelta: 0.0421,
}}>
<Marker
coordinate={{
latitude: 39.78825,
latitude: 39.78825,
}}
title="Title"
description={"Desc"}
/>
</MapView>

它返回错误:“试图注册两个具有相同名称的 AIRMap View ”请帮忙。谢谢。

最佳答案

能否提供依赖列表,访问 Expo.MapView 只需要 react-native-maps。你能安装两份 react-native-maps 吗?

关于javascript - 错误 : Tried to register two views with the same name AIRMap. .. 实现 react-native-maps,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54247445/

41 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com