Merge pull request #1245 from zoontek/fix-regression

Delete regression that make every component accessible by default
This commit is contained in:
Mikael Sand
2020-01-10 02:35:39 +02:00
committed by GitHub
-3
View File
@@ -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: