Skip to content

Commit

Permalink
refactor: use sheet instead of styles
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiKilian committed Dec 2, 2024
1 parent 0a235dd commit c32923d
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { Button, Platform, Text, View } from "react-native";
import { ButtonGroup } from "../../components/ButtonGroup";
import MapSafeAreaView from "../../components/MapSafeAreaView";
import { OSM_RASTER_STYLE } from "../../constants/OSM_RASTER_STYLE";
import { sheet } from "../../styles/sheet";

const SettingsGroup = ({
children,
Expand All @@ -22,8 +23,6 @@ const SettingsGroup = ({
</View>
);

const styles = { matchParent: { flex: 1 } };

function humanize(name: string): string {
const words = name.match(/[A-Za-z][a-z]*/g) || [];

Expand Down Expand Up @@ -98,7 +97,7 @@ export default function FollowUserLocationRenderMode() {
)}

<MapLibreGL.MapView
style={styles.matchParent}
style={sheet.matchParent}
styleJSON={JSON.stringify(OSM_RASTER_STYLE)}
>
<MapLibreGL.Camera
Expand Down

0 comments on commit c32923d

Please sign in to comment.