* feat: emit focus/blur events during present/dismiss * docs: update focus/blur events documentation * feat(android): emit focus/blur events during present/dismiss - Add willFocus/didFocus events with willPresent/didPresent - Add willBlur/didBlur events with willDismiss/didDismiss - Use postDelayed with animation duration for did* events after animation - Handle both programmatic dismiss (STATE_HIDDEN) and user-initiated cancel - Use isDismissing flag to prevent duplicate events * refactor(android): extract dismiss event helpers to reduce redundancy - Add emitWillDismissEvents() helper for willBlur/willDismiss + parent focus - Add emitDidDismissEvents() helper for didBlur/didDismiss + parent focus + promise - Update dismiss(), STATE_HIDDEN, and setOnCancelListener to use helpers * fix(android): emit position change on user-initiated dismiss onSlide isn't triggered for user-initiated dismiss (back button, tap outside), so manually emit off-screen position after dismiss animation completes. * test: add focus/blur event callback tests * fix: add animated param to mock present/dismiss methods |
||
|---|---|---|
| .. | ||
| blog | ||
| docs | ||
| src | ||
| static | ||
| .gitattributes | ||
| .gitignore | ||
| babel.config.js | ||
| docusaurus.config.ts | ||
| package.json | ||
| README.md | ||
| sidebars.ts | ||
| tsconfig.json | ||
Website
This website is built using Docusaurus, a modern static website generator.
Installation
$ yarn
Local Development
$ yarn start
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
Build
$ yarn build
This command generates static content into the build directory and can be served using any static contents hosting service.