Overview of React Navigation 7.0 features
mainReact Navigation 7 introduces several major improvements and new APIs designed to enhance developer experience and performance:
- Static API: An optional API that simplifies navigator configuration and improves TypeScript support and deep linking.
- Preloading Screens: Support for preloading screens in many navigators to improve perceived performance.
- Layout Props: New
layoutprops for navigators and screens to add UI and behavior. - Web Integration: Improved web support with anchor tag rendering and revamped
LinkanduseLinkPropsAPIs that use screen names instead of paths. - Header Searchbar: All navigators with a header now support a searchbar via the
headerSearchBarOptionsoption. useLoggerDevtool: A newuseLoggerhook for debugging navigation actions and state in the console (replacing the Flipper plugin).- Bottom Tab Navigator Enhancements: Supports sidebar positioning via
tabBarPosition('left'or'right') and custom animations via theanimationoption. - Standalone Drawer Layout: The drawer implementation used in
@react-navigation/draweris now available as the standalone packagereact-native-drawer-layout.