forked from anomalyco/opencode
-
Notifications
You must be signed in to change notification settings - Fork 0
Add Android mobile client using Expo React Native #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
+9,680
−0
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Created new packages/mobile-expo package - Set up Expo project with TypeScript - Implemented navigation with React Navigation - Created three main screens: Home, Session, Settings - Added ServerContext for API communication - Configured Android-specific settings in app.json - Added README with installation and usage instructions Co-authored-by: grand151 <86811297+grand151@users.noreply.github.com>
- Added OpencodeApiClient for cleaner API communication - Created EmptyState and LoadingSpinner components - Added ARCHITECTURE.md documentation - Updated README.md with mobile app section - Refactored ServerContext to use API client Co-authored-by: grand151 <86811297+grand151@users.noreply.github.com>
- Created QUICKSTART.md for end users and quick setup - Created CONTRIBUTING.md for developers - Updated .gitignore with proper Expo exclusions - Added troubleshooting and FAQ sections Co-authored-by: grand151 <86811297+grand151@users.noreply.github.com>
- Replace 'any[]' with proper Session[] and Message[] types - Add SessionsResponse interface for API type safety - Import and use types from api-client module - Ensure Message objects are properly typed with role union type Co-authored-by: grand151 <86811297+grand151@users.noreply.github.com>
- Add explicit null return in getSession error case - Add type annotation for SessionDetails in getSession - Use Platform.OS for dynamic platform detection in Settings - Support iOS/Android/Web platform display Co-authored-by: grand151 <86811297+grand151@users.noreply.github.com>
Copilot
AI
changed the title
(削除) [WIP] Create Android port for Expo React Native (削除ここまで)
(追記) Add Android mobile client using Expo React Native (追記ここまで)
Jan 8, 2026
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
Implements Android port for OpenCode using Expo React Native, enabling remote session management from mobile devices.
Implementation
New Package:
packages/mobile-expo/Architecture
Component Structure
ServerContext: Connection state, API methodsapi-client.ts: Typed HTTP client withSession[],Message[]interfacesEmptyState,LoadingSpinnerInstallation
Configuration
app.jsonai.opencode.mobilepackage.jsonDocumentation
ARCHITECTURE.md: Client-server model, API endpoints, security considerationsCONTRIBUTING.md: Dev setup, project structure, debuggingQUICKSTART.md: User guide, troubleshooting (localhost/IP/remote URLs)README.md: Mobile app section addedNotes
Platform.OS(Android/iOS/Web)Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
cdp.expo.dev/usr/local/bin/node node /home/REDACTED/.npm/_npx/956a30255ff895e3/node_modules/.bin/create-expo-app . --template blank-typescript --no-install(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.