Skip to content

Commit

Permalink
docs(screen-reader): Use stateChange event in example code (#1934)
Browse files Browse the repository at this point in the history
Co-authored-by: Damian Tarnawsky <[email protected]>
  • Loading branch information
jcesarmobile and dtarnawsky authored Dec 1, 2023
1 parent fb941c7 commit e18f458
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 e18f458

Please sign in to comment.