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 codedre committed Aug 15, 2017
1 parent a22ad4a commit b360280
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 @@ -460,7 +460,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._rotateMap();
Expand Down

0 comments on commit b360280

Please sign in to comment.