fix(rn,polyfills) fix Performance polyfill
We need to re-override now() to avoid a recursion error. Also I missed the default export.
This commit is contained in:
parent
d21eb59f24
commit
3bf1a1774f
|
@ -399,7 +399,8 @@ function _visitNode(node, callback) {
|
|||
|
||||
const perf = require('react-native-performance');
|
||||
|
||||
global.performance = perf;
|
||||
global.performance = perf.default;
|
||||
global.performance.now = now;
|
||||
global.PerformanceObserver = perf.PerformanceObserver;
|
||||
|
||||
// CallStats
|
||||
|
|
Loading…
Reference in New Issue