First install @bottom-tabs/react-navigation
which provides a native bottom tab navigator for React Navigation.
Next, create a custom layout adapter for the native bottom tabs using withLayoutContext
from Expo Router:
Make sure to provide the correct types for thewithLayoutContext
function. Without it screen options won't have proper types.
Then, use the Tabs
navigator in your app:
For props and more information, see the React Navigation integration guide.
Example: okwasniewski/ExpoNativeTabs