Skip to content

Commit

Permalink
1258: Use styled components
Browse files Browse the repository at this point in the history
  • Loading branch information
steffenkleinle committed Feb 18, 2025
1 parent 37c1512 commit 9f2c916
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions native/src/routes/Pois.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { BottomSheetFlatListMethods } from '@gorhom/bottom-sheet'
import React, { ReactElement, useRef, useState } from 'react'
import { useTranslation } from 'react-i18next'
import { View, useWindowDimensions } from 'react-native'
import { useWindowDimensions } from 'react-native'
import { SvgUri } from 'react-native-svg'
import styled from 'styled-components/native'

Expand All @@ -24,6 +24,10 @@ const StyledIcon = styled(Icon)`
height: 16px;
`

const Container = styled.View`
flex: 1;
`

const SNAP_POINT_MID_PERCENTAGE = 0.35

type PoisProps = {
Expand Down Expand Up @@ -129,7 +133,7 @@ const Pois = ({ pois: allPois, cityModel, route, navigation }: PoisProps): React
)

return (
<View style={{ flex: 1 }}>
<Container>
<PoiFiltersModal
modalVisible={showFilterSelection}
closeModal={() => setShowFilterSelection(false)}
Expand Down Expand Up @@ -166,7 +170,7 @@ const Pois = ({ pois: allPois, cityModel, route, navigation }: PoisProps): React
setScrollPosition={setListScrollPosition}
isFullscreen={bottomSheetFullscreen}
/>
</View>
</Container>
)
}

Expand Down

0 comments on commit 9f2c916

Please sign in to comment.