Skip to content

Commit

Permalink
Merge branch 'main' into fix-history-index
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgrzybowski committed Aug 2, 2023
2 parents 1cd2cac + c43208f commit 1e840e4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/elements/src/Header/HeaderBackButton.tsx
Expand Up @@ -154,7 +154,7 @@ export function HeaderBackButton({
onPress={disabled ? undefined : handlePress}
pressColor={pressColor}
pressOpacity={pressOpacity}
android_ripple={{ borderless: true }}
android_ripple={androidRipple}
style={[styles.container, disabled && styles.disabled, style]}
hitSlop={Platform.select({
ios: undefined,
Expand All @@ -169,6 +169,12 @@ export function HeaderBackButton({
);
}

const androidRipple = {
borderless: true,
foreground: Platform.OS === 'android' && Platform.Version >= 23,
radius: 20,
};

const styles = StyleSheet.create({
container: {
alignItems: 'center',
Expand Down

0 comments on commit 1e840e4

Please sign in to comment.