-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Platform specific SearchBar #837
Merged
Merged
Conversation
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
Codecov Report
@@ Coverage Diff @@
## next #837 +/- ##
==========================================
+ Coverage 53.02% 54.37% +1.34%
==========================================
Files 29 32 +3
Lines 513 572 +59
Branches 109 120 +11
==========================================
+ Hits 272 311 +39
- Misses 186 199 +13
- Partials 55 62 +7
Continue to review full report at Codecov.
|
# Conflicts: # src/searchbar/__tests__/__snapshots__/SearchBar-default.js.snap
Snapshots! |
@iRoachie Let me just update the docs |
iRoachie
approved these changes
Jan 28, 2018
xavier-villelegier
pushed a commit
that referenced
this pull request
Jan 28, 2018
* Update README.md - fixing typos (#835) * Pass activeOpacity to TouchableOpacity inside Tile (#839) * Pass activeOpacity to TouchableOpacity inside Tile * Update Tile tests * Comment `LinearGradient` for now (FIXME) * feat(example): Cleanup remains from example app split * Fix ListItem (#848) Fix error on empty rightTitle prop by adding !! * Separate checkbox single and checkbox with text styling (#850) * (theming) Unify components under one primary color (#849) * feat(theming): Remove not-used colors * feat(theme): Add primary color and use through components Added in button, button group, badge, and header * Update snapshots * Update underColor on buttonGroup to match selectedColor * Snapshots * Add color for Checkbox * fix(Checkbox): Shifting width between checked and unchecked * chore(packages): Update versions to fix warnings in jest * added listItem right icon size so that it takes rightIcon size, or 28 (#852) * uses thumbStyle.transform values in the thumb View (#820) * [ts] Correct style type for IconObject (#851) * Add ButtonComponent props and linear gradient props (#857) * Add ButtonComponent props * Use `linearGradientProps` + add error on mounting * feat(button-group): Adds selectMultiple feature (#858) Closes #713 * Platform specific SearchBar (#837) 🚀 * Add SearchBar wrapper * Split SearchBar iOS and Android into separate files * Add back default SearchBar * Update root import * Add back Input right/left icon * Rename loadingIcon to loadingProps * Specify `platform` PropType * Add a fallback * Move tests to `searchbar` * Remove old Search component * Fix loading props spreading overriding whole style * Remove useless things * Add tests for SearchBar * Generate snapshots * Add more tests * Update tests * Update documentation * Fix typo * Slightly changed the style of SearchBars * Bump version to `1.0.0-beta2` * Update snapshots from Searchbar changes * feat(button): Re-add custom TouchableComponent * feat(Button): Cleanup button code, update ts definitions (#859) * Update SearchBars PropTypes * feat(searchbar-both) Add additional defaultProps Made tests pass * Fix PropTypes warnings * Update snapshots from searchbar android change * feat(ts): Add definitons for searchbar (#860) * Fix attributes spreading in platform specific searchbars * feat(Button) Fix activeOpacity props * fixed PricingCard to use new Button props * test(jest): Update PricingCard snapshots
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Information
This adds a new
platform
props, to choose between:• Default
react-native-elements
SearchBar• iOS SearchBar
• Android SearchBar
BREAKING CHANGES
loadingProps
loadingIcon
was an object to customize the style of theActivityIndicator
shown whenshowLoading
was true. It was replaced byloadingProps
.Before
After
showLoading
showLoadingIcon
was renamed toshowLoading
Before
After
SearchBar API Updates
platform
"default"
"default"
,"ios"
,"android"
cancelButtonTitle
"Cancel"
showLoading
false
ActivityIndicator
whentrue
loadingProps
{}
ActivityIndicator
onCancel
null
Update applied to
v1
InputleftIcon
null
TextInput
leftIconContainerStyle
null
leftIcon
rightIcon
null
TextInput
rightIconContainerStyle
null
rightIcon
Preview
Almost pixel perfect iOS 11 design (red lines are here for pixel comparison)

Example 1
TODO
searchbar/
directorysearch/
directoryplatform
is not one of"default"
,"ios"
,"android"