@krmao/react-native-talkingdata
v0.0.21
Published
react-native talkingdata library
Downloads
85
Maintainers
Readme
@krmao/react-native-talkingdata
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
- libTalkingDataSDK.a not support ios simulators, but support real iphone.
- TalkingDataSDK.xcframework support both ios simulators and real iphone.
- com.apple.commcenter.coretelephony.xpc was invalidated