mattermost-mobile/app/components/sidebars/main
Andre Vasconcelos a114b19ecc
MM-18455 Replace search bar component (#3998)
* Initiated basic migration to react-native-elements

- Search bar receives all right props without custom animations being necessary
- Need to test on different layouts and cases
- May be possible to unify android and iOS components. Attempt later

* Removing separated android/ios files

- Adding implementation of android searchbar 
- updating test snapshots

* WIP: Integrating leftComponent and adding focus animations

* Adding animations to left component on focus and blur events

* Removing repeated styles and useless props

* Updating snapshots

* Ensuring clearIcon renders when tapping search suggestions

- Also makes sure it prioritizes custom color attributes over default values for the search input

* Refactoring styles, removing clear icon animations

- Also removed useless ternary operations since the library itself already checks whether the search input is empty

* Replacing icon components with props whenever possible

- Removing useless styles

* memoizing styles, adding default props/values

* Memoize searchBarStyle with params

* Fixing backgroundColor

* Removing minWidth for cancel button

* Fixing styling issues on both iOS and android

* Updating snapshots post merge

* Making sure showCancel can be controlled by props

* Updating snapshots

* Fix clipped edges on iOS & cancel icon on Android

* Fixed radius, memoized styles

* Fixing styling issues found on Android

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-03-26 16:53:25 -03:00
..
__snapshots__ MM-18542 Fix file attachment scroll on tablets, MM-18732 Slow scroll in landscape & MM-18836 settings sidebar width (#3321) 2019-09-25 10:27:18 -07:00
channels_list MM-18455 Replace search bar component (#3998) 2020-03-26 16:53:25 -03:00
drawer_swiper Performance improvements (#3911) 2020-02-17 21:18:09 -07:00
teams_list MM-23179 Avoid unnecessary Overdraws (#4025) 2020-03-13 11:22:43 -07:00
index.js Performance improvements (#3911) 2020-02-17 21:18:09 -07:00
main_sidebar.android.js Performance improvements (#3911) 2020-02-17 21:18:09 -07:00
main_sidebar.ios.js Performance improvements (#3911) 2020-02-17 21:18:09 -07:00
main_sidebar.test.js Performance improvements (#3911) 2020-02-17 21:18:09 -07:00
main_sidebar_base.js Performance improvements (#3911) 2020-02-17 21:18:09 -07:00