Skip to content

Commit 14f8418

Browse files
jxeenorborn
authored andcommitted
fix: resolves react snapshot undefined warning (react-native-maps#2903)
1 parent 7b22bbe commit 14f8418

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/components/MapView.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ class MapView extends React.Component {
537537
if (this.props.customMapStyle !== prevProps.customMapStyle) {
538538
this._updateStyle(this.props);
539539
}
540-
return this.props.region;
540+
return this.props.region || null;
541541
}
542542

543543
componentDidUpdate(prevProps, prevState, region) {

0 commit comments

Comments
 (0)