Skip to content

Commit

Permalink
Remove unused failureCallback in example
Browse files Browse the repository at this point in the history
  • Loading branch information
Atrox authored Jun 21, 2021
1 parent f105d6e commit 68cf548
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/native-modules-android.md
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ There are two approaches to error handling with callbacks. The first is to follo

```java
@ReactMethod
public void createCalendarEvent(String name, String location, Callback myFailureCallback, Callback callBack) {
public void createCalendarEvent(String name, String location, Callback callBack) {
Integer eventId = ...
callBack.invoke(null, eventId);
}
Expand Down

0 comments on commit 68cf548

Please sign in to comment.