-
-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: reduce code duplication in
KeyboardMovementObserver
(#556)
## 📜 Description Reduce code duplication and repeated code. ## 💡 Motivation and Context Reduce code duplication and repeated code by: - moving creation of `AnyHashable` into separate function; - working with notification data in separate method. ## 📢 Changelog <!-- High level overview of important changes --> <!-- For example: fixed status bar manipulation; added new types declarations; --> <!-- If your changes don't affect one of platform/language below - then remove this platform/language --> ### iOS - created `metaDataFromNotification` and started to use this function; - created `getEventParams` and started to use this function; ## 🤔 How Has This Been Tested? Tested via e2e tests. ## 📝 Checklist - [x] CI successfully passed - [x] I added new mocks and corresponding unit-tests if library API was changed
- Loading branch information
1 parent
c65f43f
commit 66f3e42
Showing
1 changed file
with
29 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters