Environment:0xranx OpenContext React Native
| 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
- Implementation:0xranx_OpenContext_IOS_App_Entry
- Implementation:0xranx_OpenContext_IOS_Docs_CRUD
- Implementation:0xranx_OpenContext_IOS_DB_Migrations
- Implementation:0xranx_OpenContext_IOS_AI_Service
- Implementation:0xranx_OpenContext_IOS_UUID_Generator
- Implementation:0xranx_OpenContext_IOS_Idea_Time_Format
- Implementation:0xranx_OpenContext_IOS_DocEditor_Screen
- Implementation:0xranx_OpenContext_IOS_Docs_Screen
- Implementation:0xranx_OpenContext_IOS_Ideas_Screen
- Implementation:0xranx_OpenContext_IOS_Settings_Screen
- Implementation:0xranx_OpenContext_IOS_Ideas_Service
- Implementation:0xranx_OpenContext_IOS_Package_Lock