@krmao/react-native-talkingdata
Install
yarn add @krmao/react-native-talkingdata
Init
let appId = Constants.TALKING_DATA_APP_ID;
let channelId = 'default';
let custom = 'hello talking data';
TalkingDataSDK.init(appId, channelId, custom);
TalkingDataSDK.startA();
TalkingDataSDK.setExceptionReportEnabled(true);
For Typescript
react-native-talkingdata.d.ts
declare module '@krmao/react-native-talkingdata' {
export const TalkingDataSDK: {
init: (appId, channelId, custom) => void;
startA: () => void;
setExceptionReportEnabled: (boolean) => void;
};
export const TalkingDataGender: any;
export const TalkingDataProfile: any;
export const TalkingDataProfileType: any;
export const TalkingDataSDK: any;
export const TalkingDataSearch: any;
}
For Google Play
config root build.gradle in android project
buildscript {
ext {
enableTalkingDataGooglePlay = true // default false
}
}
Issues