Skip to content

Commit

Permalink
add iOS report function
Browse files Browse the repository at this point in the history
  • Loading branch information
zxcpoiu committed Aug 8, 2016
1 parent 45628d5 commit 36dfde3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 1 addition & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ export default class FirebaseCrashReport {
}

static report(message) {
if (Platform.OS === 'android') {
_FirebaseCrashReport.report(message);
} else {
}
_FirebaseCrashReport.report(message);
}
}
6 changes: 6 additions & 0 deletions ios/RNFirebaseCrashReport/RNFirebaseCrashReport.m
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,10 @@ @implementation RNFirebaseCrashReport
FIRCrashNSLog(message);
}

RCT_EXPORT_METHOD(report:(NSString *)message)
{
FIRCrashLog(message);
assert(NO);
}

@end

0 comments on commit 36dfde3

Please sign in to comment.