From 886ebcbd29cc09b6edf6739e4560d6b3ccee2a59 Mon Sep 17 00:00:00 2001 From: Ivan Chen Date: Tue, 19 Jan 2021 11:05:30 -0500 Subject: using view instead of modal --- src/components/common/TaggLoadingIndicator.tsx | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/components/common/TaggLoadingIndicator.tsx b/src/components/common/TaggLoadingIndicator.tsx index d9143bd6..dd1ae332 100644 --- a/src/components/common/TaggLoadingIndicator.tsx +++ b/src/components/common/TaggLoadingIndicator.tsx @@ -1,5 +1,6 @@ import * as React from 'react'; -import {Image, Modal, StyleSheet, View} from 'react-native'; +import {Image, StyleSheet, View} from 'react-native'; +import {SCREEN_HEIGHT, SCREEN_WIDTH} from '../../utils'; interface TaggLoadingIndicatorProps { fullscreen: boolean; @@ -9,14 +10,12 @@ const TaggLoadingIndicator: React.FC = ({ fullscreen = false, }) => { return fullscreen ? ( - - - - - + + + ) : ( = ({ }; const styles = StyleSheet.create({ + fullscreen: { + zIndex: 999, + position: 'absolute', + height: SCREEN_HEIGHT, + width: SCREEN_WIDTH, + }, container: { flex: 1, justifyContent: 'center', + alignItems: 'center', backgroundColor: 'rgba(0,0,0,0.3)', }, horizontal: { -- cgit v1.2.3-70-g09d2