You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Not Able to change background color of entire searchbar using className #4817
I am using the Searchbar component with icon and I want to apply some nativewind style to the entire searchbar, I tried using className but it does not seems to be working.
Now if try adding style prop it does works but we are not following the style prop flow.
The cause I've found is that there is no use of {...rest} prop in the Surface component.
My solution is that we should have another class that should be passed from SearchBar and applied on the Surface component.
Expected behaviour
Upon passing the className it should apply on the Internal Surface component as well.
How to reproduce?
Use the Searchbar component.
pass nativewind classes using className.
Activity
villAsh commentedon Oct 8, 2025
I am already having a solution.
Will give a PR.