Skip to content

Commit

Permalink
v3.5.1 #162
Browse files Browse the repository at this point in the history
  • Loading branch information
iRoachie authored Oct 20, 2019
2 parents dd6cdc6 + 63f8fb1 commit 46ea0fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion android/src/main/java/org/umhan35/RNSearchBarManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ public void setTextFieldBackgroundColor(SearchView searchView, @Nullable Integer
protected SearchView createViewInstance(@Nonnull ThemedReactContext reactContext) {
SearchView searchView = new SearchView(reactContext);
searchView.setIconifiedByDefault(false);
searchView.setPaddingRelative(0, 5, 10, 5);
int padding_start_in_dp = (int) (-16 * reactContext.getResources().getDisplayMetrics().density);
searchView.setPaddingRelative(padding_start_in_dp, 5, 10, 5);

searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {
@Override
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-search-bar",
"version": "3.5.0",
"version": "3.5.1",
"description": "The native search bar for react native.",
"keywords": [
"search-bar",
Expand Down

0 comments on commit 46ea0fd

Please sign in to comment.