mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-04 15:44:24 +00:00
Merge pull request #1245 from zoontek/fix-regression
Delete regression that make every component accessible by default
This commit is contained in:
@@ -66,7 +66,6 @@ const prepare = <T extends BaseProps>(
|
|||||||
props = self.props,
|
props = self.props,
|
||||||
) => {
|
) => {
|
||||||
const {
|
const {
|
||||||
accessible,
|
|
||||||
translate,
|
translate,
|
||||||
scale,
|
scale,
|
||||||
rotation,
|
rotation,
|
||||||
@@ -90,7 +89,6 @@ const prepare = <T extends BaseProps>(
|
|||||||
const hasTouchableProperty =
|
const hasTouchableProperty =
|
||||||
onPress || onPressIn || onPressOut || onLongPress;
|
onPress || onPressIn || onPressOut || onLongPress;
|
||||||
const clean: {
|
const clean: {
|
||||||
accessible?: boolean;
|
|
||||||
onStartShouldSetResponder?: (e: GestureResponderEvent) => boolean;
|
onStartShouldSetResponder?: (e: GestureResponderEvent) => boolean;
|
||||||
onResponderMove?: (e: GestureResponderEvent) => void;
|
onResponderMove?: (e: GestureResponderEvent) => void;
|
||||||
onResponderGrant?: (e: GestureResponderEvent) => void;
|
onResponderGrant?: (e: GestureResponderEvent) => void;
|
||||||
@@ -101,7 +99,6 @@ const prepare = <T extends BaseProps>(
|
|||||||
style?: {};
|
style?: {};
|
||||||
ref?: {};
|
ref?: {};
|
||||||
} = {
|
} = {
|
||||||
accessible: accessible !== false,
|
|
||||||
...(hasTouchableProperty
|
...(hasTouchableProperty
|
||||||
? {
|
? {
|
||||||
onStartShouldSetResponder:
|
onStartShouldSetResponder:
|
||||||
|
|||||||
Reference in New Issue
Block a user