aboutsummaryrefslogtreecommitdiff
path: root/src/components/search/SearchResultsBackground.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-03-08 21:26:56 -0500
committerGitHub <noreply@github.com>2021-03-08 21:26:56 -0500
commit74231a7496d9dc6435d01c78588d32eb1e558d7e (patch)
treedfbc23797b4756c8be2b5159a07c98a4c8f75838 /src/components/search/SearchResultsBackground.tsx
parent5298bb3a1620f6906af5041bfe15d1ac7b6325d9 (diff)
parentce4b25405b1a17ddf80211d903ce02b992422323 (diff)
Merge pull request #285 from leonyjiang/hotfix-hide-search-cancel
[Hotfix] Hide Search Bar Cancel Button
Diffstat (limited to 'src/components/search/SearchResultsBackground.tsx')
-rw-r--r--src/components/search/SearchResultsBackground.tsx14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/components/search/SearchResultsBackground.tsx b/src/components/search/SearchResultsBackground.tsx
index 25dcf781..2833553d 100644
--- a/src/components/search/SearchResultsBackground.tsx
+++ b/src/components/search/SearchResultsBackground.tsx
@@ -1,7 +1,7 @@
import React from 'react';
import {StyleSheet} from 'react-native';
import Animated, {interpolate} from 'react-native-reanimated';
-import {SCREEN_HEIGHT, SCREEN_WIDTH, StatusBarHeight} from '../../utils';
+import {SCREEN_HEIGHT, SCREEN_WIDTH} from '../../utils';
interface SearchResultsBackgroundProps {
top: Animated.Value<number>;
@@ -21,7 +21,8 @@ const SearchResultsBackground: React.FC<SearchResultsBackgroundProps> = ({
return (
<Animated.View
style={[styles.container, {opacity: opacityBackground, top}]}>
- <Animated.View style={{opacity: opacityContent}}>
+ <Animated.View
+ style={[styles.contentContainer, {opacity: opacityContent}]}>
{children}
</Animated.View>
</Animated.View>
@@ -29,14 +30,15 @@ const SearchResultsBackground: React.FC<SearchResultsBackgroundProps> = ({
};
const styles = StyleSheet.create({
container: {
- flex: 1,
height: SCREEN_HEIGHT,
width: SCREEN_WIDTH,
position: 'absolute',
backgroundColor: 'white',
- paddingTop: 60,
- paddingBottom: 10,
- zIndex: 0,
+ },
+ contentContainer: {
+ flex: 1,
+ paddingVertical: 10,
+ paddingBottom: SCREEN_HEIGHT / 15,
},
});
export default SearchResultsBackground;