Create a .env file in the examples/mobile-client/mobile-fishjam-chat directory (optional), or copy the .env.example file. The following environment variables are required:
EXPO_PUBLIC_VIDEOROOM_STAGING_SANDBOX_URL- Sandbox URL for VideoRoom staging environmentEXPO_PUBLIC_FISHJAM_ID- Fishjam ID for production environment
The app has 2 tabs showing different ways to connect to Fishjam video calls:
VideoRoom - Connect to VideoRoom (Fishjam's demo service, something like Google Meet) by entering a room name and username. The app automatically creates the room and generates tokens for you.
Livestream - Join existing livestreams or create your own livestream.
- Clone the repository:
git clone https://github.com/fishjam-cloud/web-client-sdk.git
cd web-client-sdk
- Install dependencies and build project:
yarn
yarn build- Prebuild native files in example directory:
cd examples/mobile-client/mobile-fishjam-chat
npx expo prebuild --cleanNote
Be sure to run npx expo prebuild and not yarn prebuild as there's an issue with path generation for the ios/.xcode.env.local file
- Build app:
yarn ios
yarn android
- Whenever you make changes in the
packagesdirectory, make sure to build the app in the root directory (not inexamples/mobile-client/mobile-fishjam-chat). This ensures that all related workspaces are also built:
yarn build- Linter (run in the root directory):
yarn lint