Commit 7bf7ba1
authored
refactor: make
## 📜 Description
Make `Switch` component re-usable between screens.
## 💡 Motivation and Context
I want to develop highly customizable components, similar to
`KeyboardAwareScrollView`, so I want to have those checkboxes everywhere
to toggle various props.
## 📢 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
- make `Switch` component re-usable between different
components/screens.
## 🤔 How Has This Been Tested?
Tested in example app.
## 📝 Checklist
- [x] CI successfully passed
- [x] I added new mocks and corresponding unit-tests if library API was
changedSwitch component re-usable in example app (#1297)1 parent ebc5205 commit 7bf7ba1
4 files changed
Lines changed: 2 additions & 2 deletions
File renamed without changes.
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | | - | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | | - | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
0 commit comments