From 86987e391941436b7e4634e62b860a31f1238054 Mon Sep 17 00:00:00 2001 From: Joshua Yoes <37849890+joshuayoes@users.noreply.github.com> Date: Sun, 25 Sep 2022 01:05:15 -0700 Subject: [PATCH] fix(native-modules-android.md): rename createCalendarEventCallback CalendarModule.createCalendarEvent is referenced as CalendarModule.createCalendarEventCallback a few times in the jsx code snippets, which is incorrect --- docs/native-modules-android.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/native-modules-android.md b/docs/native-modules-android.md index 3596e0038f9..e154d587bf5 100644 --- a/docs/native-modules-android.md +++ b/docs/native-modules-android.md @@ -615,7 +615,7 @@ In JavaScript, you can then check the first argument to see if an error was pass ```jsx const onPress = () => { - CalendarModule.createCalendarEventCallback( + CalendarModule.createCalendarEvent( 'testName', 'testLocation', (error, eventId) => { @@ -659,7 +659,7 @@ Then in JavaScript you can add a separate callback for error and success respons ```jsx const onPress = () => { - CalendarModule.createCalendarEventCallback( + CalendarModule.createCalendarEvent( 'testName', 'testLocation', (error) => {