|
@@ -383,6 +383,13 @@ const FilterModal = forwardRef<
|
|
|
const renderRegions = () => {
|
|
const renderRegions = () => {
|
|
|
return (
|
|
return (
|
|
|
<View style={{ minHeight: 200, justifyContent: 'space-between' }}>
|
|
<View style={{ minHeight: 200, justifyContent: 'space-between' }}>
|
|
|
|
|
+ <TouchableOpacity
|
|
|
|
|
+ onPress={() => bottomSheetRef.current?.hide()}
|
|
|
|
|
+ style={[styles.regionsCloseBtn]}
|
|
|
|
|
+ hitSlop={{ top: 10, bottom: 10, left: 10, right: 10 }}
|
|
|
|
|
+ >
|
|
|
|
|
+ <CloseSvg width={15} height={15} />
|
|
|
|
|
+ </TouchableOpacity>
|
|
|
<View style={styles.optionsContainer}>
|
|
<View style={styles.optionsContainer}>
|
|
|
<View style={[styles.rowWrapper, {}]}>
|
|
<View style={[styles.rowWrapper, {}]}>
|
|
|
<View style={[styles.dropdownWrapper, {}]}>
|
|
<View style={[styles.dropdownWrapper, {}]}>
|
|
@@ -397,7 +404,7 @@ const FilterModal = forwardRef<
|
|
|
setTilesType(item);
|
|
setTilesType(item);
|
|
|
}}
|
|
}}
|
|
|
hideTitle={true}
|
|
hideTitle={true}
|
|
|
- initialSnapPoint={45}
|
|
|
|
|
|
|
+ initialSnapPoint={Platform.OS === 'android' ? 55 : 45}
|
|
|
/>
|
|
/>
|
|
|
</View>
|
|
</View>
|
|
|
</View>
|
|
</View>
|
|
@@ -416,7 +423,7 @@ const FilterModal = forwardRef<
|
|
|
setSelectedVisible(item);
|
|
setSelectedVisible(item);
|
|
|
}}
|
|
}}
|
|
|
hideTitle={true}
|
|
hideTitle={true}
|
|
|
- initialSnapPoint={35}
|
|
|
|
|
|
|
+ initialSnapPoint={Platform.OS === 'android' ? 45 : 35}
|
|
|
/>
|
|
/>
|
|
|
</View>
|
|
</View>
|
|
|
<View style={styles.dropdownWrapper}>
|
|
<View style={styles.dropdownWrapper}>
|
|
@@ -431,6 +438,7 @@ const FilterModal = forwardRef<
|
|
|
setSelectedYear(item);
|
|
setSelectedYear(item);
|
|
|
}}
|
|
}}
|
|
|
hideTitle={true}
|
|
hideTitle={true}
|
|
|
|
|
+ initialSnapPoint={Platform.OS === 'android' ? 100 : 70}
|
|
|
/>
|
|
/>
|
|
|
</View>
|
|
</View>
|
|
|
</View>
|
|
</View>
|
|
@@ -466,15 +474,13 @@ const FilterModal = forwardRef<
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<View style={[styles.seriesSheetContainer]}>
|
|
<View style={[styles.seriesSheetContainer]}>
|
|
|
- {Platform.OS === 'android' && (
|
|
|
|
|
- <TouchableOpacity
|
|
|
|
|
- onPress={() => bottomSheetRef.current?.hide()}
|
|
|
|
|
- style={styles.seriesCloseBtn}
|
|
|
|
|
- hitSlop={{ top: 10, bottom: 10, left: 10, right: 10 }}
|
|
|
|
|
- >
|
|
|
|
|
- <CloseSvg />
|
|
|
|
|
- </TouchableOpacity>
|
|
|
|
|
- )}
|
|
|
|
|
|
|
+ <TouchableOpacity
|
|
|
|
|
+ onPress={() => bottomSheetRef.current?.hide()}
|
|
|
|
|
+ style={styles.seriesCloseBtn}
|
|
|
|
|
+ hitSlop={{ top: 10, bottom: 10, left: 10, right: 10 }}
|
|
|
|
|
+ >
|
|
|
|
|
+ <CloseSvg width={15} height={15} />
|
|
|
|
|
+ </TouchableOpacity>
|
|
|
<View style={[styles.optionsContainer, { paddingHorizontal: 16 }]}>
|
|
<View style={[styles.optionsContainer, { paddingHorizontal: 16 }]}>
|
|
|
<View style={[styles.row, { gap: 8 }]}>
|
|
<View style={[styles.row, { gap: 8 }]}>
|
|
|
<Switch
|
|
<Switch
|
|
@@ -737,6 +743,13 @@ const FilterModal = forwardRef<
|
|
|
const renderNomads = () => {
|
|
const renderNomads = () => {
|
|
|
return (
|
|
return (
|
|
|
<View style={[styles.sceneContainer, { justifyContent: 'space-between' }]}>
|
|
<View style={[styles.sceneContainer, { justifyContent: 'space-between' }]}>
|
|
|
|
|
+ <TouchableOpacity
|
|
|
|
|
+ onPress={() => bottomSheetRef.current?.hide()}
|
|
|
|
|
+ style={[styles.regionsCloseBtn]}
|
|
|
|
|
+ hitSlop={{ top: 10, bottom: 10, left: 10, right: 10 }}
|
|
|
|
|
+ >
|
|
|
|
|
+ <CloseSvg width={15} height={15} />
|
|
|
|
|
+ </TouchableOpacity>
|
|
|
<View style={{ marginBottom: 16 }}>
|
|
<View style={{ marginBottom: 16 }}>
|
|
|
<View style={styles.textContainer}>
|
|
<View style={styles.textContainer}>
|
|
|
<Text style={styles.text}>The location is shared with 1 km radius precision.</Text>
|
|
<Text style={styles.text}>The location is shared with 1 km radius precision.</Text>
|
|
@@ -1045,7 +1058,7 @@ const FilterModal = forwardRef<
|
|
|
<View
|
|
<View
|
|
|
style={[
|
|
style={[
|
|
|
{
|
|
{
|
|
|
- paddingTop: 12,
|
|
|
|
|
|
|
+ paddingTop: Platform.OS === 'android' ? 12 : 0,
|
|
|
height: isSeriesFilter ? windowHeight - insets.top : undefined
|
|
height: isSeriesFilter ? windowHeight - insets.top : undefined
|
|
|
},
|
|
},
|
|
|
isFilterVisible === 'series' ? {} : { paddingHorizontal: 16 }
|
|
isFilterVisible === 'series' ? {} : { paddingHorizontal: 16 }
|