mirror of
https://github.com/expo/dev-plugins.git
synced 2026-11-15 03:38:09 -10:00
# Why update the `expo` from sdk 50 beta version to official release # How - by running `npx expo install --fix` to update packages - for expo-router, since https://github.com/expo/expo/commit/b3dd058e80831d110f503c5d3158c556d3c7de25 was landed, we don't need the strange useRef re-wrap anymore.
@dev-plugins/react-navigation
A React Navigation DevTool that can run in an Expo App
Installation
Add the package to your project
npx expo install @dev-plugins/react-navigation
Integrate react-navigation with the DevTool hook
import { useNavigationContainerRef } from '@react-navigation/native';
import { useReactNavigationDevTools } from '@dev-plugins/react-navigation';
export default function App() {
const navigationRef = useNavigationContainerRef();
useReactNavigationDevTools(navigationRef);
return <NavigationContainer ref={navigationRef}>{/* ... */}</NavigationContainer>;
}