diff --git a/src/screens/Subscriptions/index.tsx b/src/screens/Subscriptions/index.tsx index 528dd59bb8..9a2ae71fd1 100644 --- a/src/screens/Subscriptions/index.tsx +++ b/src/screens/Subscriptions/index.tsx @@ -1,5 +1,6 @@ import React from 'react' import {RefreshControl, TextStyle, View} from 'react-native' +import {useSafeAreaInsets} from 'react-native-safe-area-context' import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' import {NativeStackScreenProps} from '@react-navigation/native-stack' @@ -45,6 +46,7 @@ export type ScreenProps = NativeStackScreenProps< > export function Subscriptions(_props: ScreenProps) { + const insets = useSafeAreaInsets() const purchases = usePurchases() const {refetch} = usePurchasesApi() const {loading, restricted} = useNativeUserState() @@ -59,13 +61,14 @@ export function Subscriptions(_props: ScreenProps) { } return ( - + + - + @@ -83,17 +86,17 @@ export function Subscriptions(_props: ScreenProps) { refreshControl={ }> - - {purchases.status === 'loading' || loading ? ( - - ) : purchases.status === 'error' ? ( - - {purchases.error?.message ?? 'Something went wrong.'} - - ) : ( - - )} - + + {purchases.status === 'loading' || loading ? ( + + ) : purchases.status === 'error' ? ( + + {purchases.error?.message ?? 'Something went wrong.'} + + ) : ( + + )} + ) @@ -116,9 +119,6 @@ function Core({ return ( - - My subscriptions - {/* @@ -138,17 +138,23 @@ function Core({ )} {isSubscribedToCore ? ( - - - {coreSubscriptions.map(sub => ( - - ))} + <> + + My subscriptions + + + + + {coreSubscriptions.map(sub => ( + + ))} + + + + + - - - - - + ) : null}