Closed hakimscode closed 2 years ago
I have the same problem.
I believe event.persist
is deprecated. I think we can modify that line to read something like: event?.persist()
Please open a PR
@peterp PR is up https://github.com/peterp/react-native-tags/pull/90
Closed by #90
Hello, I'm trying to add simple tags to my app. But I have a problem in onPress handler when I'm trying to delete pressed tag.
here's my code
Expected Behaviour Tag that pressed should be deleted
Actual Behavior I got an error
But, when I try open react-native-tags in node_modules and delete/comment the line where the
event.persist();
in index.js file, everything works fine.What should I do beside changing the code in the node_modules to get everything works fine
I have also tried
onPress={(e) => onPress(e)}
onPress={() => onPress()}
but still not workingThanks