Skip to content

Commit 1683c44

Browse files
committed
Removed debugging comments
1 parent bd78b4d commit 1683c44

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

Diff for: lib/modules/analytics.js

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import {NativeModules, NativeAppEventEmitter} from 'react-native';
2-
3-
console.log('NativeModules ->', Object.keys(NativeModules).sort());
42
const FirestackAnalytics = NativeModules.FirestackAnalytics;
53

64
import promisify from '../utils/promisify'

Diff for: lib/modules/base.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Log from '../utils/log'
55

66
import {NativeModules, NativeEventEmitter, AsyncStorage} from 'react-native';
77
const FirestackModule = NativeModules.Firestack;
8-
let FirestackModuleEvt;
8+
const FirestackModuleEvt = new NativeEventEmitter(FirestackModule);
99

1010
import promisify from '../utils/promisify'
1111

@@ -53,9 +53,6 @@ export class Base {
5353
// this.eventHandlers[name] = {};
5454
// }
5555
if (!nativeModule) {
56-
if (!FirestackModuleEvt) {
57-
FirestackModuleEvt = new NativeEventEmitter(FirestackModule);
58-
}
5956
nativeModule = FirestackModuleEvt;
6057
}
6158
const sub = nativeModule.addListener(name, cb);

0 commit comments

Comments
 (0)