Skip to content

Commit

Permalink
prettify
Browse files Browse the repository at this point in the history
  • Loading branch information
yairopro committed Apr 1, 2020
1 parent b503ea2 commit c51d3ea
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/components/MapView.js
Original file line number Diff line number Diff line change
Expand Up @@ -627,10 +627,10 @@ class MapView extends React.Component {
}
}

_onChange({nativeEvent}) {
_onChange({ nativeEvent }) {
this.__lastRegion = nativeEvent.region;
const isGesture = nativeEvent.isGesture;
const details = {isGesture};
const details = { isGesture };

if (nativeEvent.continuous) {
if (this.props.onRegionChange) {
Expand Down Expand Up @@ -983,7 +983,7 @@ class MapView extends React.Component {
if (Platform.OS === 'android' && this.props.liteMode) {
return (
<AIRMapLite
ref={ref => {
ref={(ref) => {
this.map = ref;
}}
{...props}
Expand All @@ -995,7 +995,7 @@ class MapView extends React.Component {

return (
<AIRMap
ref={ref => {
ref={(ref) => {
this.map = ref;
}}
{...props}
Expand All @@ -1010,7 +1010,7 @@ MapView.childContextTypes = childContextTypes;

MapView.MAP_TYPES = MAP_TYPES;

const nativeComponent = Component =>
const nativeComponent = (Component) =>
requireNativeComponent(Component, MapView, {
nativeOnly: {
onChange: true,
Expand All @@ -1028,10 +1028,10 @@ if (Platform.OS === 'android') {
airMaps.google = googleMapIsInstalled
? nativeComponent('AIRGoogleMap')
: createNotSupportedComponent(
'react-native-maps: AirGoogleMaps dir must be added to your xCode project to support GoogleMaps on iOS.'
);
'react-native-maps: AirGoogleMaps dir must be added to your xCode project to support GoogleMaps on iOS.'
);
}
const getAirMapComponent = provider => airMaps[provider || 'default'];
const getAirMapComponent = (provider) => airMaps[provider || 'default'];

let AIRMapLite;
if (!NativeModules.UIManager.getViewManagerConfig) {
Expand Down

0 comments on commit c51d3ea

Please sign in to comment.