Implementation:0xranx OpenContext IOS Docs Screen
| Knowledge Sources | |
|---|---|
| Domains | UI, Document_List, iOS |
| Last Updated | 2026-10-24 00:00 GMT |
Overview
React Native screen component that displays a list of documents in the iOS app, with empty state handling and i18n-aware date formatting.
Description
The DocsScreen component in src-ios/screens/ loads documents via listDocs() on screen focus using a navigation focus listener. It renders a FlatList with Card components showing the document name, description preview, and formatted update date. When no documents exist, it shows an EmptyState placeholder. A FadeInView animates the header in.
Usage
Use as a screen in a React Navigation stack for browsing documents.
Code Reference
Source Location
- Repository: 0xranx_OpenContext
- File: src-ios/screens/DocsScreen.js
- Lines: 1-96
Signature
function DocsScreen({ navigation })
Import
const DocsScreen = require('./screens/DocsScreen');
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| navigation | object | Yes | React Navigation object (uses focus event) |
Outputs
| Name | Type | Description |
|---|---|---|
| JSX | React.Element | FlatList of document cards or empty state |
Usage Examples
Register as Screen
const Stack = createNativeStackNavigator();
<Stack.Screen name="Docs" component={DocsScreen} />