- The integration testing app formerly under
example/
has been renamed/moved totest/app/
. - The React Native dependency within the integration testing app has been updated from
0.63.4
to0.66.5
.
- The SDK now exports error classes and emits error objects specific to an error code. See the below code snippet for usage.
See (TODO LINK TO DOCS) for all error classes.
import { TwilioErrors } from '@twilio/voice-react-native-sdk'; // ... voice.on(Voice.Event.Error, (error: TwilioErrors.TwilioError) => { if (error instanceof TwilioErrors.AuthorizationErrors.AccessTokenInvalid) { // Update your UI to reflect an invalid access token. } // Alternatively, your application logic can use the error code. if (error.code === 20101) { // Update your UI to reflect an invalid access token. } });
- Fixed an issue where some types on the
Call
andVoice
classes were being incorrectly exported. Types and references toaddEventListener
are instead now correctly exported asaddListener
. - Fixed an issue where available audio devices were sometimes incorrectly emitted and returned by the SDK on Android platforms. This occurs more frequently in development environments when the JS bundle is reloaded, but could happen in production environments as well.
- This is the initial preview release of Twilio Voice React Native SDK. Please check out the README for more details.