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

Environment:0xranx OpenContext React Native

From Leeroopedia
Knowledge Sources
Domains Frontend, Mobile, iOS
Last Updated 2026-10-24 00:00 GMT

Overview

React Native / Expo runtime for the OpenContext iOS companion app, providing mobile document management, idea journaling, and AI reflection features.

Description

This environment provides the React Native runtime for OpenContext's iOS app in `src-ios/`. The app is built with Expo and uses React Navigation for tab-based navigation (Documents, Ideas, Settings). It includes a local SQLite database for offline document storage, AI service integration for idea reflection, and idea journaling with timeline display. Components use React Native primitives (View, Text, ScrollView, FlatList) with custom theming.

Usage

Use this environment for all iOS app component development, including document CRUD, idea journaling, AI service configuration, and settings management. It is the prerequisite for all `0xranx_OpenContext_IOS_*` implementations.

System Requirements

Category Requirement Notes
OS macOS (for iOS builds) Dev can run on any OS via Expo
Hardware Any modern CPU 4GB+ RAM for iOS simulator
Disk 1GB for node_modules Plus iOS build output
iOS 13.0+ Minimum deployment target

Dependencies

npm Packages

  • `react-native` (via Expo)
  • `expo` SDK
  • `@react-navigation/native` + `@react-navigation/bottom-tabs`
  • `expo-sqlite` for local database
  • `expo-clipboard` for clipboard access

Credentials

AI API key is configured in-app via the Settings screen. No build-time credentials required.

Quick Install

# Install iOS app dependencies
cd src-ios && npm install

# Start Expo dev server
npx expo start

# Run on iOS simulator
npx expo start --ios

Code Evidence

Tab navigation from `src-ios/App.js`:

import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
const Tab = createBottomTabNavigator();

function RootTabs() {
  return (
    <Tab.Navigator>
      <Tab.Screen name="Docs" component={DocsScreen} />
      <Tab.Screen name="Ideas" component={IdeasScreen} />
      <Tab.Screen name="Settings" component={SettingsScreen} />
    </Tab.Navigator>
  );
}

SQLite database from `src-ios/db/index.js`:

import * as SQLite from 'expo-sqlite';
const db = SQLite.openDatabase('opencontext.db');

Common Errors

Error Message Cause Solution
`Unable to load expo-sqlite` Native module not linked Run `npx expo prebuild` then rebuild
`Cannot find module '@react-navigation'` Dependencies not installed Run `npm install` in `src-ios/`

Compatibility Notes

  • Expo managed workflow: The app uses Expo's managed workflow; native modules are accessed via Expo packages.
  • Offline storage: Documents are stored locally in SQLite; no server connection required for basic CRUD.
  • AI features: AI reflection requires network access and a configured API key in Settings.

Related Pages

Page Connections

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