Skip to content

Commit

Permalink
Fix initial region native prop (#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 christopherdro committed Aug 15, 2017
1 parent c9c52ab commit fd8dc08
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 fd8dc08

Please sign in to comment.