Skip to content

Commit

Permalink
Fix initial region native prop (react-native-maps#1546)
Browse files Browse the repository at this point in the history
* Fix initial region bug

* Remove useless change
  • Loading branch information
foyarash authored and patricio committed Sep 27, 2017
1 parent 4a74e18 commit 41c7a7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/components/MapView.js
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ class MapView extends React.Component {
if (region) {
this.map.setNativeProps({ region });
} else if (initialRegion) {
this.map.setNativeProps({ region: initialRegion });
this.map.setNativeProps({ initialRegion });
}
this._updateStyle();
this.setState({ isReady: true }, () => {
Expand Down

0 comments on commit 41c7a7f

Please sign in to comment.