ebanutsya

This commit is contained in:
2023-10-27 06:03:46 +03:00
parent 4f25112b5e
commit 37d3fb5a78
34 changed files with 831 additions and 17841 deletions

View File

@@ -0,0 +1,30 @@
import Toast, {BaseToast, ErrorToast, ToastConfig} from 'react-native-toast-message';
import {responsiveHeight, responsiveWidth} from "react-native-responsive-dimensions";
const toastConfig: ToastConfig = {
success: (props) => (
<BaseToast
{...props}
text1Style={{fontSize: responsiveWidth(3)}}
text2Style={{fontSize: responsiveWidth(3)}}
style={{
width: responsiveWidth(90),
height: responsiveHeight(10),
borderLeftColor: "green"
}}
/>),
error: (props) => (
<BaseToast
{...props}
text1Style={{fontSize: responsiveWidth(3)}}
text2Style={{fontSize: responsiveWidth(3)}}
style={{
width: responsiveWidth(90),
height: responsiveHeight(10),
borderLeftColor: "red"
}}
/>),
}
export default toastConfig;