Skip to content

Commit

Permalink
fix: Add TouchableNativeFeedback to list of components supporting dis…
Browse files Browse the repository at this point in the history
…abled prop (#53)

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
  • Loading branch information
philipbulley and thymikee committed Mar 3, 2021
1 parent db65dfb commit b45040d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/__tests__/to-be-disabled.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
TouchableHighlight,
TouchableOpacity,
TouchableWithoutFeedback,
TouchableNativeFeedback,
View,
TextInput,
Pressable,
Expand All @@ -17,6 +18,7 @@ const ALLOWED_COMPONENTS = {
TouchableHighlight,
TouchableOpacity,
TouchableWithoutFeedback,
TouchableNativeFeedback,
Pressable,
};

Expand Down
1 change: 1 addition & 0 deletions src/to-be-disabled.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const DISABLE_TYPES = [
'TouchableHighlight',
'TouchableOpacity',
'TouchableWithoutFeedback',
'TouchableNativeFeedback',
'View',
'TextInput',
'Pressable',
Expand Down

0 comments on commit b45040d

Please sign in to comment.