Skip to content

Commit

Permalink
Merge pull request #27302 from ZhenjaHorbach/fix/toggle-attribution-b…
Browse files Browse the repository at this point in the history
…utton-is-not-placed-on-the-right-position

The toggle attribution button is not placed on the right position for android
  • Loading branch information
AndrewGable authored Sep 13, 2023
2 parents 3bf5358 + 43467f7 commit f9f86ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/MapView/MapView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {View} from 'react-native';
import {useFocusEffect} from '@react-navigation/native';
import Mapbox, {MapState, MarkerView, setAccessToken} from '@rnmapbox/maps';
import {forwardRef, memo, useCallback, useEffect, useImperativeHandle, useRef, useState} from 'react';
import styles from '../../styles/styles';

import responder from './responder';
import utils from './utils';
Expand Down Expand Up @@ -64,6 +65,8 @@ const MapView = forwardRef<MapViewHandle, MapViewProps>(({accessToken, style, ma
styleURL={styleURL}
onMapIdle={setMapIdle}
pitchEnabled={pitchEnabled}
attributionPosition={{...styles.r2, ...styles.b2}}
logoPosition={{...styles.l2, ...styles.b2}}
// eslint-disable-next-line
{...responder.panHandlers}
>
Expand Down
3 changes: 3 additions & 0 deletions src/styles/utilities/positioning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,7 @@ export default {
b0: {
bottom: 0,
},
b2: {
bottom: 8,
},
} satisfies Record<string, ViewStyle>;

0 comments on commit f9f86ea

Please sign in to comment.