From 5729eed1752688169926b22a7d4a0b8b0132dc39 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Fri, 7 Jul 2023 14:36:01 +0800 Subject: [PATCH] Made AnimatedContainer scrollable --- .../AnimatedContainer/AnimatedContainer.tsx | 25 +++++++++++++------ src/styles.tsx | 6 +++-- 2 files changed, 21 insertions(+), 10 deletions(-) diff --git a/src/components/AnimatedContainer/AnimatedContainer.tsx b/src/components/AnimatedContainer/AnimatedContainer.tsx index aade0dc..91f6bfb 100644 --- a/src/components/AnimatedContainer/AnimatedContainer.tsx +++ b/src/components/AnimatedContainer/AnimatedContainer.tsx @@ -9,13 +9,22 @@ export interface props { export default function AnimatedContainer(props: props) { return ( - - {props.children} - + + + {props.children} + + ); } diff --git a/src/styles.tsx b/src/styles.tsx index 3f0057f..27285c0 100644 --- a/src/styles.tsx +++ b/src/styles.tsx @@ -32,7 +32,8 @@ const styles = StyleSheet.create({ width: "100%", }, container: { - marginTop: "5%", + flex: 1, + marginVertical: "5%", width: "92%", borderRadius: 15, backgroundColor: colors.blue_2, @@ -108,8 +109,9 @@ const styles = StyleSheet.create({ marginVertical: 6, }, map: { - height: "50%", + height: 512, width: "90%", + alignSelf: "center", }, });