2019-05-28 13:03:08 +00:00
|
|
|
import firebase from 'react-native-firebase';
|
2018-05-18 17:55:08 +00:00
|
|
|
|
|
|
|
export default (event, error) => {
|
2018-05-24 20:17:00 +00:00
|
|
|
if (typeof error !== 'object') {
|
|
|
|
error = { error };
|
|
|
|
}
|
2019-05-28 13:03:08 +00:00
|
|
|
firebase.analytics().logEvent(event);
|
2018-05-18 17:55:08 +00:00
|
|
|
if (__DEV__) {
|
|
|
|
console.warn(event, error);
|
|
|
|
}
|
|
|
|
};
|