Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.58 KB

CHANGELOG.md

File metadata and controls

36 lines (27 loc) · 1.58 KB

1.0.0-beta.1 (In Progress)

Changes

  • The integration testing app formerly under example/ has been renamed/moved to test/app/.
  • The React Native dependency within the integration testing app has been updated from 0.63.4 to 0.66.5.

Features

  • The SDK now exports error classes and emits error objects specific to an error code. See the below code snippet for usage.
    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.
      }
    });
    See (TODO LINK TO DOCS) for all error classes.

Fixes

  • Fixed an issue where some types on the Call and Voice classes were being incorrectly exported. Types and references to addEventListener are instead now correctly exported as addListener.
  • 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.

1.0.0-preview.1 (September 1, 2022)

  • This is the initial preview release of Twilio Voice React Native SDK. Please check out the README for more details.