Home > react-nav-router > NavViewContextValue
NavViewContextValue interface
Nav 页面上下文值
由 NavStack 在每个页面视图外层注入,用于通知 NavView(或其它消费者) 该视图当前所处的外观状态与对应的栈元素标识。
Signature:
typescript
interface NavViewContextValueProperties
Property | Modifiers | Type | Description |
|---|---|---|---|
number | 视图当前的外观状态 取值见 AppearStatus;为了兼容未定义枚举的场景,类型保留为 | ||
object | null | 视图对应的栈元素标识(即 NavStack 中 stack 数组的对应元素) 默认上下文(无 NavStack 包裹时)为 null。 |