Skip to content

Commit b360280

Browse files
foyarashcodedre
authored andcommitted
Fix initial region native prop (react-native-maps#1546)
* Fix initial region bug * Remove useless change
1 parent a22ad4a commit b360280

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/components/MapView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ class MapView extends React.Component {
460460
if (region) {
461461
this.map.setNativeProps({ region });
462462
} else if (initialRegion) {
463-
this.map.setNativeProps({ region: initialRegion });
463+
this.map.setNativeProps({ initialRegion });
464464
}
465465
this._updateStyle();
466466
this._rotateMap();

0 commit comments

Comments
 (0)