File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " raygun4reactnative" ,
33 "title" : " Raygun4reactnative" ,
4- "version" : " 1.2.5 " ,
4+ "version" : " 1.2.6 " ,
55 "description" : " Raygun React Native SDK" ,
66 "main" : " dist/index.js" ,
77 "typescript" : {
Original file line number Diff line number Diff line change @@ -126,6 +126,14 @@ export default class CrashReporter {
126126 * @param {Breadcrumb } breadcrumb
127127 */
128128 recordBreadcrumb ( breadcrumb : Breadcrumb ) {
129+
130+ /**
131+ Android does not seem to handle the mismatched types gracefully like how iOS does.
132+ Therefore we need to an additional check to avoid users app from crashing
133+ **/
134+
135+ breadcrumb . message = JSON . stringify ( breadcrumb . message ) ;
136+
129137 this . breadcrumbs . push ( { ...breadcrumb } ) ;
130138
131139 if ( this . breadcrumbs . length > this . maxBreadcrumbsPerErrorReport ) {
You can’t perform that action at this time.
0 commit comments