This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.

Expo 路由本地标签

一个 Expo Router 子模块,提供原生标签页布局。

Android
iOS
tvOS
Web
Included in Expo Go
Recommended version:
~58.0.17

expo-router/native-tabs 是 expo-router 的一个子模块,并导出用于使用平台原生系统标签构建标签布局的组件。

安装

🌐 Installation

要在你的项目中使用 expo-router/native-tabs,你需要在项目中安装 expo-router。按照 Expo Router 安装指南的说明操作:

🌐 To use expo-router/native-tabs in your project, you need to install expo-router in your project. Follow the instructions from Expo Router's installation guide:

安装 Expo 路由

了解如何在项目中安装 Expo Router。

应用配置中的配置

🌐 Configuration in app config

如果你使用 default 模板创建新项目,expo-router 的 配置插件 已经在你的应用配置中设置好了。

🌐 If you are using the default template to create a new project, expo-router's config plugin is already configured in your app config.

Example app.json with config plugin

app.json
{ "expo": { "plugins": ["expo-router"] } }

用法

🌐 Usage

要了解如何使用原生标签页和 Expo Router,请阅读原生标签页指南:

🌐 To learn how to use native tabs, with Expo Router, read the native tabs guide:

原生标签页

了解如何在你的 Expo Router 应用中使用原生标签页。

应用接口

🌐 API

import { NativeTabs } from 'expo-router/native-tabs';

No API data file found, sorry!