From 28ae4098c0e766a600957c25e198b74a00310f12 Mon Sep 17 00:00:00 2001 From: Ruslan Baybekov <39907210+oxyii@users.noreply.github.com> Date: Sun, 20 Oct 2019 15:33:06 +0300 Subject: [PATCH 1/2] fix(android): Extra left margin (#161) --- android/src/main/java/org/umhan35/RNSearchBarManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/src/main/java/org/umhan35/RNSearchBarManager.java b/android/src/main/java/org/umhan35/RNSearchBarManager.java index 668813c..e46d0c0 100644 --- a/android/src/main/java/org/umhan35/RNSearchBarManager.java +++ b/android/src/main/java/org/umhan35/RNSearchBarManager.java @@ -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 From 63f8fb14e5be6b0241f6ac1564cbaee9c7894fda Mon Sep 17 00:00:00 2001 From: Kyle Roach Date: Sun, 20 Oct 2019 08:34:35 -0400 Subject: [PATCH 2/2] chore: Bump package --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7fbf069..5c7c334 100644 --- a/package.json +++ b/package.json @@ -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",