From b45040df502fcf5e685b7a76781062b5f3fe94bb Mon Sep 17 00:00:00 2001 From: Philip Bulley Date: Wed, 3 Mar 2021 17:22:03 +0000 Subject: [PATCH] fix: Add TouchableNativeFeedback to list of components supporting disabled prop (#53) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Michał Pierzchała --- src/__tests__/to-be-disabled.js | 2 ++ src/to-be-disabled.js | 1 + 2 files changed, 3 insertions(+) diff --git a/src/__tests__/to-be-disabled.js b/src/__tests__/to-be-disabled.js index b449c6a..cad5186 100644 --- a/src/__tests__/to-be-disabled.js +++ b/src/__tests__/to-be-disabled.js @@ -4,6 +4,7 @@ import { TouchableHighlight, TouchableOpacity, TouchableWithoutFeedback, + TouchableNativeFeedback, View, TextInput, Pressable, @@ -17,6 +18,7 @@ const ALLOWED_COMPONENTS = { TouchableHighlight, TouchableOpacity, TouchableWithoutFeedback, + TouchableNativeFeedback, Pressable, }; diff --git a/src/to-be-disabled.js b/src/to-be-disabled.js index 3ac9fa9..1a58dac 100644 --- a/src/to-be-disabled.js +++ b/src/to-be-disabled.js @@ -12,6 +12,7 @@ const DISABLE_TYPES = [ 'TouchableHighlight', 'TouchableOpacity', 'TouchableWithoutFeedback', + 'TouchableNativeFeedback', 'View', 'TextInput', 'Pressable',