import com.sudoplz.reactnativeamplitudeanalytics.RNAmplitudeSDKPackage;
@Override
protected List<ReactPackage> getPackages() {
@SuppressWarnings("UnnecessaryLocalVariable")
List<ReactPackage> packages = new PackageList(this).getPackages();
packages.add(new RNAmplitudePackage(MainApplication.this))
return packages;
}
MainApplication.java . If possible can anyone share link to integrate amplitude analytics in react-native. Thank You in advance
If you are using Expo Amplitude is event tracking in build in and you should refer Expo docs.
Any other case official JS SDK has built-in React Native support. You can read more here.