TouchableWithoutFeedback disables pressing component inside

I’m using https://github.com/JoeRoddy/react-native-tag-autocomplete and ran in to the issue where I have it inside TouchableWithoutFeedback component with onPress={Keyboard.dismiss}. The issue is that the tags are no longer touchable when wrapped inside TouchableWithoutFeedback.

<TouchableWithoutFeedback onPress={() => Keyboard.dismiss()}> 
    <View>
         <AutoTags />
    </View>
</TouchableWithoutFeedback>

Now I don’t know if I should just wrap every other component on my view with TouchableWithoutFeedback and let Autotags be as it doesn’t seem as a good solution.

Leave a Comment