ultravox-react-native
v0.0.1
Published
React Native client SDK for Ultravox
Readme
ultravox-client-sdk-react-native
React Native client SDK for Ultravox.
Installation
npm install ultravox-react-nativeUsage
import { useUltravox } from 'ultravox-react-native';
// ...
const { joinCall, leaveCall } = useUltravox();
useEffect(() => {
joinCall(joinUrl).catch((error) => {
console.error('Failed to join call:', error);
});
return () => {
leaveCall().catch((error) => {
console.error('Failed to leave call:', error);
});
};
}, [joinUrl, joinCall, leaveCall]);See the included example app for a more complete example. To get a joinUrl, you'll want to integrate your server with the Ultravox REST API
Testing SDK Changes
This repo includes a basic example application that can be used with the SDK. To run it from the main directory:
npm install --force
cd example
npm run android
npm run start -- --tunnelAn Expo server will start, from which you can open an Android build on your connected device.
Publishing
- Test using the example app.
- Bump version in
package.json. npm publish --dry-run --git-checks=false- Open PR, get changes merged, then continue from
main. npm publish- Create a new Tag and Release on GitHub please.
