We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a028720 commit 15b279dCopy full SHA for 15b279d
lib/raven-plugin.js
@@ -20,7 +20,16 @@
20
'use strict';
21
import {NativeModules} from 'react-native';
22
23
-var wrappedCallback = require('../src/utils').wrappedCallback;
+function wrappedCallback(callback) {
24
+ function dataCallback(data, original) {
25
+ var normalizedData = callback(data) || data;
26
+ if (original) {
27
+ return original(normalizedData) || normalizedData;
28
+ }
29
+ return normalizedData;
30
31
+ return dataCallback;
32
+}
33
34
// Example React Native path format (iOS):
35
// /var/containers/Bundle/Application/{DEVICE_ID}/HelloWorld.app/main.jsbundle
0 commit comments