|
|
@@ -39,7 +39,7 @@ import { renderSpotsText } from './utils';
|
|
|
import ChevronIcon from 'assets/icons/chevron-left.svg';
|
|
|
import Tooltip from 'react-native-walkthrough-tooltip';
|
|
|
import InfoIcon from 'assets/icons/info-solid.svg';
|
|
|
-import { SafeAreaView } from 'react-native-safe-area-context';
|
|
|
+import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
|
import TabViewWrapper from 'src/components/TabViewWrapper';
|
|
|
import { getFontSize } from 'src/utils';
|
|
|
|
|
|
@@ -63,6 +63,7 @@ function TabViewDelayed({
|
|
|
}
|
|
|
|
|
|
const EventsScreen = () => {
|
|
|
+ const insets = useSafeAreaInsets();
|
|
|
const token = (storage.get('token', StoreType.STRING) as string) ?? null;
|
|
|
const { data, refetch } = useGetEventsListQuery(token, 0, true);
|
|
|
const { data: pastData } = useGetEventsListQuery(token, 1, true);
|
|
|
@@ -557,14 +558,14 @@ const EventsScreen = () => {
|
|
|
);
|
|
|
|
|
|
return (
|
|
|
- <SafeAreaView style={{ height: '100%' }} edges={['top']}>
|
|
|
+ <View style={{ height: '100%', paddingTop: insets.top }}>
|
|
|
<View style={{ marginLeft: '5%', marginRight: '5%' }}>
|
|
|
<View
|
|
|
style={{
|
|
|
alignItems: 'center',
|
|
|
- paddingVertical: 16,
|
|
|
flexDirection: 'row',
|
|
|
- justifyContent: 'space-between'
|
|
|
+ justifyContent: 'space-between',
|
|
|
+ paddingVertical: 16
|
|
|
}}
|
|
|
>
|
|
|
<View style={{ width: 30 }} />
|
|
|
@@ -582,7 +583,7 @@ const EventsScreen = () => {
|
|
|
>
|
|
|
<CalendarPlusIcon fill={Colors.DARK_BLUE} />
|
|
|
</TouchableOpacity>
|
|
|
- ) : null}
|
|
|
+ ) : <View style={{ width: 30 }} />}
|
|
|
</View>
|
|
|
|
|
|
<Animated.View style={[styles.searchContainer, searchContainerAnimatedStyle]}>
|
|
|
@@ -643,7 +644,7 @@ const EventsScreen = () => {
|
|
|
</View>
|
|
|
</TouchableOpacity>
|
|
|
</Modal>
|
|
|
- </SafeAreaView>
|
|
|
+ </View>
|
|
|
);
|
|
|
};
|
|
|
|