Skip to content
This repository has been archived by the owner on May 7, 2022. It is now read-only.

Commit

Permalink
fix(🐛): dont wrap in portal. host component should decide
Browse files Browse the repository at this point in the history
  • Loading branch information
osamaqarem committed Aug 23, 2020
1 parent 2daf0e3 commit dbba083
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions template/src/common/components/LoadingPopup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,12 @@ const LoadingPopup = ({ visible }: LoadingPopupProps) => {
})

return (
<Portal>
<Animated.View
pointerEvents="none"
style={[styles.backdrop, { opacity }]}
>
<View style={styles.card}>
<ActivityIndicator size={44} animating={visible} />
<Text style={styles.text}>Please wait...</Text>
</View>
</Animated.View>
</Portal>
<Animated.View pointerEvents="none" style={[styles.backdrop, { opacity }]}>
<View style={styles.card}>
<ActivityIndicator size={44} animating={visible} />
<Text style={styles.text}>Please wait...</Text>
</View>
</Animated.View>
)
}

Expand All @@ -48,9 +43,9 @@ const styles = StyleSheet.create({
shadowOpacity: 0.1,
shadowRadius: 5.0,
elevation: 10,
width: 300,
minWidth: 200,
padding: 10,
height: 100,
minHeight: 80,
justifyContent: "space-evenly",
alignItems: "center",
flexDirection: "row",
Expand Down

0 comments on commit dbba083

Please sign in to comment.