From e18f45853322516c2da8c8505814deb72a5eaecc Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Fri, 1 Dec 2023 16:46:28 +0100 Subject: [PATCH] docs(screen-reader): Use stateChange event in example code (#1934) Co-authored-by: Damian Tarnawsky <84595830+dtarnawsky@users.noreply.github.com> --- screen-reader/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screen-reader/README.md b/screen-reader/README.md index b0eeb009b..c664cd21b 100644 --- a/screen-reader/README.md +++ b/screen-reader/README.md @@ -14,7 +14,7 @@ npx cap sync ```typescript import { ScreenReader } from '@capacitor/screen-reader'; -ScreenReader.addListener('screenReaderStateChange', ({ value }) => { +ScreenReader.addListener('stateChange', ({ value }) => { console.log(`Screen reader is now ${value ? 'on' : 'off'}`); });