Skip to content

Commit

Permalink
fix(NativeComponents): Adaptation du style pour une application égale…
Browse files Browse the repository at this point in the history
…ment sur Android (#567)
  • Loading branch information
ecnivtwelve authored Jan 4, 2025
2 parents 961cd34 + 9b8f599 commit d547c59
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/components/Global/NativeComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,13 @@ export const NativeItem: React.FC<NativeItemProps> = ({
entering={entering && entering}
exiting={exiting && exiting}
pointerEvents={pointerEvents}
style={[
item_styles.item,
style,
disabled && {
opacity: 0.5,
},
]}
>
<NativePressable
onPress={!disabled ? onPress : () => {}}
Expand All @@ -238,14 +245,9 @@ export const NativeItem: React.FC<NativeItemProps> = ({
onTouchEnd={onTouchEnd}
androidStyle={androidStyle}
style={({ pressed }) => [
item_styles.item,
onPress && {
backgroundColor: pressed && !disabled ? colors.text + "12" : "transparent",
},
style,
disabled && {
opacity: 0.5,
},
]}
>
<View style={[item_styles.part, item_styles.leading]}>
Expand Down

0 comments on commit d547c59

Please sign in to comment.