Skip to content

Commit

Permalink
fix(screen-reader): Use stateChange event in example code rather than…
Browse files Browse the repository at this point in the history
… non-existent screenReaderStateChange event
  • Loading branch information
dtarnawsky committed Nov 17, 2023
1 parent af95940 commit 8e46fce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion screen-reader/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'}`);
});

Expand Down

0 comments on commit 8e46fce

Please sign in to comment.