src/apps/Playground/Components/Modals/index.tsx
Function Modals
has 107 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const Modals = () => {
const { goBack } = useNavigation();
const colors = useColors();
const [modal, setModal] = useState<Modal>(null);
const handleModalChange = useCallback(
Avoid too many return
statements within this function. Open
Open
return (
<Notification
onCancel={handleClose}
title="bob"
/>
Avoid too many return
statements within this function. Open
Open
return null;
Avoid too many return
statements within this function. Open
Open
return (
<Modal
onBackgroundPress={handleClose}
showOverlay
>
Avoid too many return
statements within this function. Open
Open
return (
<Modal
onBackgroundPress={handleClose}
showOverlay
>
Avoid too many return
statements within this function. Open
Open
return <Loading onBackgroundPress={handleClose} />;