- ОШИБКА TypeError: Navigation.openDrawer не является функцией (она не определена), js-движок: Hermes
Home.js
Код: Выделить всё
import { useNavigation } from '@react-navigation/native';
const navigation = useNavigation();
const LeftIcon = () => {
return (
navigation.openDrawer()}>
);
};
Код: Выделить всё
export const TabNav = {
Home: 'Home',
Profile: 'Profile',
Library: 'Library',
Explore: 'Explore',
DrawerNavigation: 'DrawerNavigation',
};
export const DrawerNav = {
Home: 'Home',
Profile: 'Profile',
Library: 'Library',
Explore: 'Explore',
};
Код: Выделить всё
import DrawerNavigation from './Type/DrawerNavigation';
export const TabRoute = {
Home,
Profile,
Library,
Explore,
DrawerNavigation,
};
export const DrawerRoute = {
Home,
Profile,
Library,
Explore,
};
Код: Выделить всё
Подробнее здесь: https://stackoverflow.com/questions/791 ... -js-engine