Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: conditional types for
KeyboardAvoidingView
(#711)
## 📜 Description `contentContainerStyle` can be used only when `behavior="position"`. ## 💡 Motivation and Context To eep people aware about that additionally I decided to specify conditional TS types. Now people will get a warning if they specify this property and don't specify behavior as `position`. ## 📢 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 --> ### JS - add conditional types to `KeyboardAvoidingView`; ## 🤔 How Has This Been Tested? Tested in example project. ## 📸 Screenshots (if appropriate): ### Forbidden <img width="994" alt="image" src="https://github.com/user-attachments/assets/b1cd85ae-c7ab-40b0-9079-847a35fca149"> ### Allowed <img width="785" alt="image" src="https://github.com/user-attachments/assets/de6572a4-49ce-4462-9447-8649159f32bf"> ## 📝 Checklist - [x] CI successfully passed - [x] I added new mocks and corresponding unit-tests if library API was changed
- Loading branch information