Commit e268049
[MOB-10402] Improve Example App Code Quality (#779)
* Saparate sample app screens from App.js
* Migrate sample class components to hooks
* Extract sample buttons into components
* Extract reusable Screen component from screens
* Add tab bar icons in example app
* Extract reusable Section component in example app
* Add welcome heading in example app
* Move sample app source into `src` directory
* Improve primary color selection a11y in sample app
* Hide checkmark icon in ColorButton from a11y in sample
* Add a11y label to color theme switch in sample
* Update survey tokens in sample app
* Fix typo in sample's home screen
Co-authored-by: Youssef Raafat <99807625+TheBuggedYRN@users.noreply.github.com>
* Show welcome header in sample's home screen only
* Set default primary color to default blue in sample
* Set colorTheme state to enum value instead of boolean
* Render invocation events dynamically in sample
* More convenient variable names in sample
* Use `Alert` API instead of deprecated `alert` in sample
* Change components default exports to named exports
Co-authored-by: Youssef Raafat <99807625+TheBuggedYRN@users.noreply.github.com>1 parent 519d86f commit e268049
File tree
15 files changed
+368
-373
lines changed- example
- android/app
- ios
- InstabugSample.xcodeproj
- InstabugSample
- Images.xcassets/AppIcon.appiconset
- src
- components
- screens
15 files changed
+368
-373
lines changedThis file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
86 | 92 | | |
87 | 93 | | |
88 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
0 commit comments