Skip to content

Commit

Permalink
Compatibility with latest NewRelic Agent API
Browse files Browse the repository at this point in the history
Addressing Issue wix-incubator#23 facebook/react-native#21498

If you follow the guidance given wix-incubator#23 (comment) then you can get this working. But if you need to build your app in a CI/CD environment, then no way to edit your node modules.

This change brings this bridge in line with the current NewRelic agent.
  • Loading branch information
sandor11 authored Mar 29, 2019
1 parent 8d1441d commit 2af62a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/RNNewRelic/RNNewRelic.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ @implementation RNNewRelic
RCT_EXPORT_MODULE();

RCT_EXPORT_METHOD(send: (NSString*)name :(NSDictionary*)args){
[NewRelicAgent recordEvent:name attributes:args];
[NewRelicAgent recordCustomEvent:name attributes:args];
}


Expand Down

0 comments on commit 2af62a5

Please sign in to comment.