Search code examples
react-nativevoximplant

undefined is not an object(inspecting voximplantModule) voximplant connection


The error at runtime shows in index.android.js in node-modules>react-native-voximplant. The file which is shown on there device on the red screen is index.android.js (the main file, the entry point)

this.connect = function(){
    VoxImplantModule.connect();
}

Solution

  • It seems that import directive is missing:

    import VoxImplant from 'react-native-voximplant';
    

    Voximplant React Native SDK has a demo project available that you can check here.