diff --git a/native/crash.react.js b/native/crash.react.js --- a/native/crash.react.js +++ b/native/crash.react.js @@ -148,11 +148,15 @@ } async sendReport() { - const sanitizedReduxReport: ReduxCrashReport = sanitizeReduxReport({ + // There's a type error here because ActionLogger doesn't understand the + // exact shape of the Redux state / actions it is passed. We could solve it + // by adding some type params to ActionLogger + const rawReduxReport: ReduxCrashReport = ({ preloadedState: actionLogger.preloadedState, currentState: actionLogger.currentState, actions: actionLogger.actions, - }); + }: any); + const sanitizedReduxReport = sanitizeReduxReport(rawReduxReport); const result = await sendReport({ type: reportTypes.ERROR, platformDetails: {