Использование Blurview из @React-C-Community/Blur на Android (iOS работает нормально), делает экран пустым. Если бы последний экран использовал Blurview, следующий экран также был бы пустым. Я попробовал несколько других вещей, таких как Set ScreenOptions = {{animation: 'none'}} в или изменение непрозрачности компонента Blurview.android в node_modules, как некоторые проблемы на Github Repo заложены, но ничего не сработало. < /P>
import { useEffect, useRef, useState } from 'react';
export const useIsMounted = () => {
const ref = useRef(null);
const [isMounted, setIsMounted] = useState(false);
useEffect(() => {
setIsMounted(!!ref.current);
}, );
return { componentRef: ref, isMounted };
};
< /code>
const {componentRef: textRef, isMounted: isTextMounted} = useIsMounted();
return
{isTextMounted && }
{/* some blurred content */}
Подробнее здесь: https://stackoverflow.com/questions/797 ... not-in-ios