Skip to content

Commit 1db9e49

Browse files
authored
🤝 Merge pull request #252 from pengcao1/master
fix some type define issue
2 parents ea8645f + fc63bff commit 1db9e49

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

index.d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ export function setAutoScreenRecordingEnabled(autoScreenRecordingEnabled: boolea
9292
export function setAutoScreenRecosetAutoScreenRecordingMaxDurationrdingEnabled(autoScreenRecordingMaxDuration: number): void;
9393
export function IBGLog(log: string): void;
9494
export function setUserStepsEnabled(isUserStepsEnabled: boolean): void;
95+
export function setTrackUserSteps(issetTrackUserSteps: boolean): void;
9596
export function setIBGLogPrintsToConsole(printsToConsole: boolean): void;
9697
export function setCrashReportingEnabled(enableCrashReporter: boolean): void;
9798
export function setPreSendingHandler(preSendingHandler: () => void): void;
@@ -135,9 +136,9 @@ export function setPrimaryColor(setPrimaryColor: string): void;
135136
export function appendTags(tags: string[]): void;
136137
export function resetTags(): void;
137138
export function getTags(tagsCallback: () => void): void;
138-
export function setstringToKey(
139+
export function setStringToKey(
139140
string: string,
140-
key: string
141+
key: strings,
141142
): void;
142143
export function setAttachmentTypesEnabled(
143144
screenshot: boolean,

index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import {
22
NativeModules,
33
NativeAppEventEmitter,
44
DeviceEventEmitter,
5-
Platform
5+
Platform,
6+
processColor
67
} from 'react-native';
78
let { Instabug } = NativeModules;
89
import InstabugUtils from './utils/InstabugUtils';
@@ -249,7 +250,7 @@ const InstabugModule = {
249250
* @param {color} primaryColor A color to set the UI elements of the SDK to.
250251
*/
251252
setPrimaryColor: function(primaryColor) {
252-
Instabug.setPrimaryColor(primaryColor);
253+
Instabug.setPrimaryColor(processColor(primaryColor));
253254
},
254255

255256
/**

0 commit comments

Comments
 (0)