-
Notifications
You must be signed in to change notification settings - Fork 3
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
android back button for leftIcon #11
Comments
Hi, |
Can you give some more information what you're having problems with? I don't see the problem with the current styling. |
I tried another approach...this works to position the button: leftIcon={Platform.select({
android: (
<HeaderBackButton /* from @react-navigation/elements@1.2.1 */
onPress={this.onDone}
style={{
position: "absolute",
marginLeft: -5,
marginTop: -5
}}
/>
)
})}
inputStyle={Platform.select({
android: {
marginLeft: 15,
shadowOpacity: 0,
shadowRadius: 0,
shadowColor: "transparent",
backgroundColor: "transparent"
}
})} Without But now the hitSlop seems to be offset too far left (can only tap the button on the far left side of the icon). EDIT: The hitSlop issue may be this: facebook/react-native#27232 |
I think you don't need to use I was able to reproduce the android ripple problem on react-native 0.63.2 and using Expo: https://snack.expo.dev/wJBeco7qC. Setting a ripple to |
0.65.2 |
Hi,
Trying to render a back button for Android using
leftIcon
and my custom<Button>
component:but styles.leftIcon in this code
react-native-platform-searchbar/src/components/SearchBar/android/index.tsx
Lines 62 to 67 in 025c45f
seems to be meant for styling an icon and not a passed component.
What do you suggest?
The text was updated successfully, but these errors were encountered: