FCE-2777: Add data channels example on mobile#476
Merged
MiloszFilimowski merged 4 commits intomainfrom Feb 17, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR exposes the new data channels hook from the mobile SDK and adds a new Expo React Native “text chat” example demonstrating data-channel usage (ported from the web example).
Changes:
- Re-export
useDataChannelandUseDataChannelResultfrom@fishjam-cloud/react-native-client. - Add a new
examples/mobile-client/text-chatExpo app showing a basic chat over data channels. - Update workspace lockfile to include the new example workspace.
Reviewed changes
Copilot reviewed 15 out of 16 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| yarn.lock | Adds the new mobile-text-chat workspace entry and dependencies. |
| packages/mobile-client/src/index.ts | Re-exports useDataChannel and UseDataChannelResult from the underlying react-client package. |
| examples/mobile-client/text-chat/tsconfig.json | Adds strict TypeScript config for the new example app. |
| examples/mobile-client/text-chat/screens/home/index.tsx | Home screen UI for entering room/user and connecting. |
| examples/mobile-client/text-chat/screens/chat/index.tsx | Chat UI using useConnection + useDataChannel to send/receive messages. |
| examples/mobile-client/text-chat/prettier.config.js | Adds Prettier config hook-up for the example. |
| examples/mobile-client/text-chat/package.json | Declares the new example workspace and Expo dependencies. |
| examples/mobile-client/text-chat/navigation/RootNavigation.tsx | Stack navigation between Home and Chat screens. |
| examples/mobile-client/text-chat/index.ts | Expo root registration. |
| examples/mobile-client/text-chat/hooks/useConnectFishjam.ts | Encapsulates sandbox token fetching + joinRoom + navigation. |
| examples/mobile-client/text-chat/eslint.config.js | Adds ESLint config hook-up for the example. |
| examples/mobile-client/text-chat/assets/README.md | Notes asset reuse from another example. |
| examples/mobile-client/text-chat/app.json | Expo app configuration (icons, bundle IDs, plugin). |
| examples/mobile-client/text-chat/App.tsx | Wraps app with FishjamProvider, navigation, and safe area provider. |
| examples/mobile-client/text-chat/.gitignore | Ignores common Expo/RN build artifacts and env files. |
| examples/mobile-client/text-chat/.env.example | Documents required EXPO_PUBLIC_FISHJAM_ID. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
554d4e7 to
3c0e858
Compare
czerwiukk
approved these changes
Feb 17, 2026
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
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.
Description
useDataChannelMotivation and Context
Documentation impact
Types of changes
not work as expected)