@krmao/react-native-talkingdata

0.0.21 • Public • Published

@krmao/react-native-talkingdata

npm version

Install

yarn add @krmao/react-native-talkingdata

Init

//region init talkingdata
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);
//endregion

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

Package Sidebar

Install

npm i @krmao/react-native-talkingdata

Weekly Downloads

1

Version

0.0.21

License

MIT

Unpacked Size

14.6 MB

Total Files

39

Last publish

Collaborators

  • krmao