Использование Blurview из @React-Com-Community/Blur на Android (iOS работает нормально), делает экран пустым. Если бы последний экран использовал Blurview, следующий экран также был бы пустым. Я пробовал несколько других вещей, таких как SET ScreenOptions = {{animation: 'none'}} в или изменение непрозрачности компонента Blurview.android в node_modules, как предлагалось некоторые проблемы в репо Github, но ничего не сработало.
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