diff --git a/.eslintrc.json b/.eslintrc.json index d8e9b1a2..f9d89eb2 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -206,7 +206,6 @@ "argsIgnorePattern": "^_" } ], - "mocha/no-mocha-arrows": 0, "prefer-promise-reject-errors": "warn", "no-await-in-loop": "warn", "no-return-await": "warn", @@ -226,7 +225,6 @@ "prefer-const": "warn", "no-console": 1, "indent": ["warn", "tab", { "SwitchCase": 1 }], - "linebreak-style": ["warn", "windows"], "quotes": ["warn", "single"], "semi": ["warn", "never"] }, diff --git a/src/components/modal/index.tsx b/src/components/modal/index.tsx index fe5bcadd..55e63975 100644 --- a/src/components/modal/index.tsx +++ b/src/components/modal/index.tsx @@ -1,7 +1,7 @@ import { ThemeContext } from '@src/context/Theme' import { highlight as hi, TPref } from '@styles' import { useContext } from 'react' -import { Modal, StyleSheet, View } from 'react-native' +import { KeyboardAvoidingView, Modal, Platform, StyleSheet, View } from 'react-native' interface IMyModalProps { type: 'bottom' | 'question' | 'success' | 'error' | 'invoiceAmount' @@ -38,11 +38,14 @@ export default function MyModal({ type, animation, visible, success, children }: transparent={true} visible={visible} > - + {children} - + : null @@ -119,4 +122,4 @@ const styles = (pref: TPref, h: string) => StyleSheet.create({ padding: 20, justifyContent: 'space-between', }, -}) \ No newline at end of file +})