mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-06 09:17:55 +08:00
Map follow user location
Summary: Fix #3105 It's the same PR as #3119 but as I force-pushed in my branch, I can't reopen the PR. I added an example.  Closes https://github.com/facebook/react-native/pull/5126 Reviewed By: svcscm Differential Revision: D2803052 Pulled By: nicklockwood fb-gh-sync-id: 2e8978ff1b293d699462a8290b45fa74cc16b4dd
This commit is contained in:
committed by
facebook-github-bot-5
parent
61025a9b33
commit
3d0ff69e40
@@ -290,9 +290,15 @@ exports.examples = [
|
||||
}
|
||||
},
|
||||
{
|
||||
title: 'Map shows user location',
|
||||
title: 'showsUserLocation + followUserLocation',
|
||||
render() {
|
||||
return <MapView style={styles.map} showsUserLocation={true} />;
|
||||
return (
|
||||
<MapView
|
||||
style={styles.map}
|
||||
showsUserLocation={true}
|
||||
followUserLocation={true}
|
||||
/>
|
||||
);
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user