diff --git a/src/components/common/Toast/index.tsx b/src/components/common/Toast/index.tsx
index 3885792a..4348e8ef 100644
--- a/src/components/common/Toast/index.tsx
+++ b/src/components/common/Toast/index.tsx
@@ -1,9 +1,10 @@
import React from 'react';
import { View } from 'react-native';
import LinearGradient from 'react-native-linear-gradient';
+import { useSafeAreaInsets } from 'react-native-safe-area-context';
import { useToast } from 'react-native-toast-notifications';
-import { isIos } from '@/constants/platform';
+import { isAndroid } from '@/constants/platform';
import { Colors } from '@/constants/theme';
import Close from '@/icons/material/Close.svg';
import ErrorIcon from '@/icons/svg/ErrorIcon.svg';
@@ -29,7 +30,6 @@ export interface ToastProps {
export const toastProviderProps = {
placement: 'top',
- offset: isIos ? 55 : 35,
renderToast: (toast: any) => ,
};
@@ -47,15 +47,17 @@ const getToastStyles = (type: ToastTypes) => {
function Toast({ title, message, type, id }: ToastProps) {
const toast = useToast();
const { Icon, colors } = getToastStyles(type as ToastTypes);
-
+ const { top } = useSafeAreaInsets();
const handleClose = () => toast.hide(id);
return (
-
+
-
+
{title}
diff --git a/src/components/common/Toast/styles.ts b/src/components/common/Toast/styles.ts
index bbec5209..f6082c75 100644
--- a/src/components/common/Toast/styles.ts
+++ b/src/components/common/Toast/styles.ts
@@ -1,6 +1,8 @@
import { StyleSheet } from 'react-native';
+import { SEMIBOLD } from '@/constants/fonts';
import { Colors } from '@/constants/theme';
+import { fontMaker } from '@/utils/fonts';
export default StyleSheet.create({
container: {
width: '92%',
@@ -14,15 +16,15 @@ export default StyleSheet.create({
justifyContent: 'space-between',
},
message: {
- fontSize: 14,
- color: Colors.White.Primary,
+ color: Colors.White.Pure,
+ opacity: 0.8,
},
title: {
marginLeft: 10,
- fontSize: 14,
- color: Colors.White.Pure,
+ ...fontMaker({ size: 14, color: Colors.White.Pure, weight: SEMIBOLD }),
},
titleContainer: {
flexDirection: 'row',
+ alignItems: 'center',
},
});