Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Implementation:0xranx OpenContext IOS Docs Screen

From Leeroopedia
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

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} />

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment