rn: polyfill callstats

Instead of bundling it in lib-jitsi-meet, which unnecessarily increases
lib-jitsi-meet's bundle size, polyfill it here so it's available in the global
scope, just like the web does.
This commit is contained in:
Saúl Ibarra Corretgé 2019-01-31 14:26:00 +01:00 committed by Paweł Domas
parent 5d86e3b674
commit 5afb057387
1 changed files with 6 additions and 0 deletions

View File

@ -381,7 +381,13 @@ function _visitNode(node, callback) {
// WebRTC
require('./polyfills-webrtc');
// CallStats
//
// Required by:
// - lib-jitsi-meet
require('react-native-callstats/csio-polyfill');
global.callstats = require('react-native-callstats/callstats');
// XMLHttpRequest
if (global.XMLHttpRequest) {