diff options
author | Leon Jiang <35908040+leonyjiang@users.noreply.github.com> | 2021-03-07 23:45:57 -0500 |
---|---|---|
committer | Leon Jiang <35908040+leonyjiang@users.noreply.github.com> | 2021-03-07 23:45:57 -0500 |
commit | 8183ce18a4b8fedb02c5af59f3021cc4d75f29f7 (patch) | |
tree | 23cd08fc40d9cbc07fabd556253aeb2f3aae88da /src/components | |
parent | d40951441f7ffaa3d452dea24bb5db52d65dd64e (diff) |
Update and prune style rules
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/search/SearchResultsBackground.tsx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/components/search/SearchResultsBackground.tsx b/src/components/search/SearchResultsBackground.tsx index f6f40f52..7339b3ea 100644 --- a/src/components/search/SearchResultsBackground.tsx +++ b/src/components/search/SearchResultsBackground.tsx @@ -21,7 +21,8 @@ const SearchResultsBackground: React.FC<SearchResultsBackgroundProps> = ({ return ( <Animated.View style={[styles.container, {opacity: opacityBackground, top}]}> - <Animated.View style={[styles.results, {opacity: opacityContent}]}> + <Animated.View + style={[styles.contentContainer, {opacity: opacityContent}]}> {children} </Animated.View> </Animated.View> @@ -29,19 +30,14 @@ const SearchResultsBackground: React.FC<SearchResultsBackgroundProps> = ({ }; const styles = StyleSheet.create({ container: { - flex: 1, height: SCREEN_HEIGHT, width: SCREEN_WIDTH, position: 'absolute', - backgroundColor: '#fff', - zIndex: 0, + backgroundColor: 'white', }, contentContainer: { - flexGrow: 1, + flex: 1, paddingBottom: SCREEN_HEIGHT / 15, }, - results: { - marginTop: StatusBarHeight, - }, }); export default SearchResultsBackground; |