diff --git a/src/_components/safeAreaView/SafeAreaView.tsx b/src/_components/safeAreaView/SafeAreaView.tsx index a61df0c4..a4becf6e 100644 --- a/src/_components/safeAreaView/SafeAreaView.tsx +++ b/src/_components/safeAreaView/SafeAreaView.tsx @@ -1,5 +1,5 @@ import { forwardRef } from 'react'; -import { ScrollView, ScrollViewProps, StatusBarStyle } from 'react-native'; +import { ScrollView, ScrollViewProps, StatusBarStyle, StyleProp, ViewStyle } from 'react-native'; import { NativeSafeAreaViewProps as RNSafeAreaViewProps } from 'react-native-safe-area-context'; import { ThemeColor } from '../../_styles/theme'; @@ -11,6 +11,7 @@ export type TSafeAreaViewProps = { barStyle?: StatusBarStyle; isScrollable?: boolean; stickyHeaderIndices?: number[]; + style?: StyleProp; } & RNSafeAreaViewProps & Pick; @@ -29,10 +30,10 @@ const SafeAreaView = forwardRef( ) => { if (isScrollable) { return ( - + ( ); } else { return ( - + {children} diff --git a/src/_components/safeAreaView/style.ts b/src/_components/safeAreaView/style.ts index 67240e41..2ded6db1 100644 --- a/src/_components/safeAreaView/style.ts +++ b/src/_components/safeAreaView/style.ts @@ -4,7 +4,7 @@ import styled from 'styled-components/native'; import { ThemeColor } from '../../_styles/theme'; import { getColor } from '../../_utils'; -export const SafeAreaViewContainer = styled(SafeAreaView)<{ backgroundColor: ThemeColor; isScrollable?: boolean }>` +export const SafeAreaViewContainer = styled(SafeAreaView)<{ backgroundColor: ThemeColor }>` background-color: ${({ backgroundColor }) => getColor(backgroundColor)}; flex: 1; `; diff --git a/src/_routing/_components/RootStackNavigator.tsx b/src/_routing/_components/RootStackNavigator.tsx index 4b91168f..07564adc 100644 --- a/src/_routing/_components/RootStackNavigator.tsx +++ b/src/_routing/_components/RootStackNavigator.tsx @@ -72,7 +72,6 @@ export const RootStackNavigator = () => { - { const [isChecked, toggleChecked] = useToggle(false); const navigation = useStackNavigation(); - const { height } = useWindowDimensions(); const onPress = () => { storage.set(StorageKey.IsPolicyApproved, true); @@ -22,12 +20,12 @@ const Onboarding = () => { return ( <> - + {t('ONBOARDING.TITLE')} - {height > 600 && } + {t('ONBOARDING.INTRO')} @@ -46,7 +44,7 @@ const Onboarding = () => { /> - +