【问题标题】:app crashed when using Geolocation.getCurrentPosition in react native máp在反应原生地图中使用 Geolocation.getCurrentPosition 时应用程序崩溃
【发布时间】:2021-12-26 18:11:59
【问题描述】:

谁能告诉我如何修复这个应用程序崩溃错误。 我将 react-native-maps 与 react-native-geolocation-service 一起使用。 当我按下更新我的位置按钮时,应用程序在不知道原因的情况下崩溃。我已经如上配置并授予了位置权限,但不知道错误在哪里?希望大家帮帮我enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

【问题讨论】:

  • 嘿@Văn,问题陈述需要更多细节,例如:应用程序崩溃时的错误消息是什么?或许你可以试试这个:Geolocation?.getCurrentPosition
  • 请澄清您的具体问题或提供其他详细信息以准确突出您的需求。正如目前所写的那样,很难准确地说出你在问什么。

标签: react-native geolocation react-native-maps


【解决方案1】:

你检查过 Android Studio 中的 Logcat 了吗?我想你会通过检查错误日志找到根本原因。

【讨论】:

    猜你喜欢
    • 2018-11-11
    • 1970-01-01
    • 2022-11-11
    • 1970-01-01
    • 2017-07-28
    • 1970-01-01
    • 2021-05-21
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多