Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/reporting-services/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
React native followUserLocation属性不适用于React Native MapView_React Native - Fatal编程技术网

React native followUserLocation属性不适用于React Native MapView

React native followUserLocation属性不适用于React Native MapView,react-native,React Native,我对我遇到的某个问题感到非常困惑。我在模拟高速公路行驶,并试图跟踪用户的位置。默认情况下,如果showsUserLocation为true,则此选项应已启用。那道具有用。但是,模拟器在移动时并非以用户位置为中心。在我下面的代码中,除了下面的userlocation之外,所有的道具都可以工作。。。我做错了什么 return ( <View style={styles.container}> <MapView style={styles.map}

我对我遇到的某个问题感到非常困惑。我在模拟高速公路行驶,并试图跟踪用户的位置。默认情况下,如果showsUserLocation为true,则此选项应已启用。那道具有用。但是,模拟器在移动时并非以用户位置为中心。在我下面的代码中,除了下面的userlocation之外,所有的道具都可以工作。。。我做错了什么

return (
  <View style={styles.container}>
    <MapView
      style={styles.map}
      showsUserLocation={true}
      followUserLocation={true}
      showsCompass={false}
    >
    </MapView>
  </View>
返回(

我认为在最新版本(0.19)之前,react native中的flowUserLocation已被破坏。现在,当我在Xcode调试器中更改位置时,映射将跟随该位置

请参阅对发布的评论:


这次提交:

我认为在最新版本(0.19)之前,react native中的flowUserLocation已经被破坏。现在,当我在Xcode调试器中更改位置时,映射将跟随该位置

请参阅对发布的评论:

这一承诺: