From 06356a6e33999efa901dc5ec9950e618f314f369 Mon Sep 17 00:00:00 2001 From: Yogesh Singh Date: Wed, 24 Jul 2024 13:00:45 +0530 Subject: [PATCH] updated example --- .../react-native-hms/src/classes/HMSUpdateListenerActions.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/react-native-hms/src/classes/HMSUpdateListenerActions.ts b/packages/react-native-hms/src/classes/HMSUpdateListenerActions.ts index 352c7b1d1..b09fef906 100644 --- a/packages/react-native-hms/src/classes/HMSUpdateListenerActions.ts +++ b/packages/react-native-hms/src/classes/HMSUpdateListenerActions.ts @@ -11,8 +11,7 @@ * * @example * ```typescript - * import { HMSUpdateListenerActions } from 'react-native-hms'; - * hmsinstance.on(HMSUpdateListenerActions.ON_JOIN, ({ room: HMSRoom }}) => { + * hmsInstance.addEventListener(HMSUpdateListenerActions.ON_JOIN, ({ room: HMSRoom }}) => { * console.log('Joined room', data); * // Handle the event * });