react-native-analytics-segment-io
react-native-analytics-segment-io copied to clipboard
Android app crashes on No virtual method recordScreenViews()
react-native-analytics-segment-io version 3.1.3 Platform: Android React-Native: 0.56.0
Crash log
No virtual method recordScreenViews()Lcom/segment/analytics/Analytics$Builder; in class Lcom/segment/analytics/Analytics$Builder; or its super classes (declaration of 'com.segment.analytics.Analytics$Builder' appears in base.apk:classes2.dex)
App crashes when setup with recordScreenViews options invoked.
const options = {
recordScreenViews: true,
trackApplicationLifecycleEvents: true,
trackAttributionData: true,
};
Analytics.setup(SEGMENT_WRITE_KEY, options)
.then(() => {...});
Has anyone came across this issue? Setup() documentation does say that recordScreenViews is supported on android.