-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Searchbar crashes on Android when wrapped in Appbar #605
Comments
@bunea Please wrap Searchbar with additional View as a workaround: <Appbar.Header>
<View style={{ flex: 1 }}>
<Searchbar
value=""
/>
</View>
</Appbar.Header> |
We should check the |
It crashes TextInput on android devices when color prop is passed. Fix callstack#605
It crashes TextInput on android devices when color prop is passed. Fix callstack#605
It crashes TextInput on android devices when color prop is passed. Fix callstack#605
It crashes TextInput on android devices when color prop is passed. Fix callstack#605
I'm still facing the same issue. Tried Thanks |
On a side note, wrapping it inside a view fixes the problem though. It'd better if we could avoid nesting. |
@devdebajyotidas This merge is not released yet. In a few days, we should release recent changes. |
Current behaviour
Searchbar
component crashes on Android withError while updating property 'color' in shadow node of type: AndroidTextInput
when it's wrapped in
Appbar
orAppbar.Header
. I guess this happens becauseAppbar
changes the theme based on thedark
property. This works fine on iOS.Expected behaviour
Should not crash.
Code sample
It seems to happen because of this and this.
...rest
containscolor
prop, which crashes theTextInput
.Your Environment
The text was updated successfully, but these errors were encountered: