Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"lint": "eslint",
"typecheck": "tsc -b",
"test": "jest",
"prepack": "bob build",
"prepare": "bob build",
"generate-mappings": "node ./scripts/generate-mappings.ts",
"release": "release-it --only-version",
"docs": "yarn --cwd docs",
Expand Down
8 changes: 6 additions & 2 deletions src/components/List/ListAccordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import type {
TextStyle,
ViewProps,
ViewStyle,
Platform,
} from 'react-native';

import { ListAccordionGroupContext } from './ListAccordionGroup';
Expand Down Expand Up @@ -243,7 +244,7 @@ const ListAccordion = ({
: handlePressAction;
return (
<View>
<View style={{ backgroundColor: theme?.colors?.background }}>
<View style={[{ backgroundColor: theme?.colors?.background }, containerStyle]}>
<TouchableRipple
style={[styles.container, style]}
onPress={handlePress}
Expand All @@ -257,18 +258,20 @@ const ListAccordion = ({
background={background}
borderless
hitSlop={hitSlop}
accessible={Platform.OS !== 'ios'}
>
<View
style={[styles.row, containerStyle]}
pointerEvents={pointerEvents}
accessible={Platform.OS=== 'ios'? false: true}
>
{left
? left({
color: isExpanded ? theme.colors?.primary : descriptionColor,
style: getLeftStyles(alignToTop, description),
})
: null}
<View style={[styles.contentItem, styles.content, contentStyle]}>
<View style={[styles.contentItem, styles.content, contentStyle]} accessible={Platform.OS=== 'ios'? false: true}>
<Text
selectable={false}
numberOfLines={titleNumberOfLines}
Expand Down Expand Up @@ -306,6 +309,7 @@ const ListAccordion = ({
styles.trailingItem,
description ? styles.multiline : undefined,
]}
accessible={Platform.OS=== 'ios'? false: true}
>
{right ? (
right({
Expand Down
3 changes: 3 additions & 0 deletions src/components/TouchableRipple/TouchableRipple.native.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ const TouchableRipple = ({
disabled={disabled}
style={[useForeground && styles.overflowHidden, style]}
android_ripple={androidRipple}
accessible={Platform.OS === 'ios' ? false : true}
>
{React.Children.only(children)}
</Pressable>
Expand All @@ -106,6 +107,7 @@ const TouchableRipple = ({
ref={ref}
disabled={disabled}
style={[borderless && styles.overflowHidden, style]}
accessible={Platform.OS === 'ios' ? false : true}
>
{({ pressed }) => (
<>
Expand All @@ -115,6 +117,7 @@ const TouchableRipple = ({
styles.underlay,
{ backgroundColor: calculatedUnderlayColor },
]}
accessible={Platform.OS ==='ios' ? false : true}
/>
)}
{React.Children.only(children)}
Expand Down
1 change: 1 addition & 0 deletions src/components/TouchableRipple/TouchableRipple.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ const TouchableRipple = ({
disabled && styles.disabled,
typeof style === 'function' ? style(state) : style,
]}
accessible={Platform.OS === 'ios' ? false : true}
>
{(state) =>
React.Children.only(
Expand Down
Loading