You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly, I'd like to thank you for this component - it's extremely useful.
I have an issue: I am trying to create touchable list items that, when pressed, show a modal to view and edit information.
However, if I call the onPressEdit function and pass it props as an argument I receive error: TypeError: Cannot read property of 'showEditModal' of undefined
But I can call onPressEdit without passing arguments and it correctly opens the modal. Am I missing something here please guys? Any help would be greatly appreciated.
At present I have: Food.js - renders flat list TrackedItem.js - returns each item in the list EditModal.js
Firstly, I'd like to thank you for this component - it's extremely useful.
I have an issue: I am trying to create touchable list items that, when pressed, show a modal to view and edit information.
However, if I call the onPressEdit function and pass it props as an argument I receive error:
TypeError: Cannot read property of 'showEditModal' of undefined
But I can call onPressEdit without passing arguments and it correctly opens the modal. Am I missing something here please guys? Any help would be greatly appreciated.
At present I have:
Food.js - renders flat list
TrackedItem.js - returns each item in the list
EditModal.js
Food.js
TrackedItem.js
EditModal.js
The text was updated successfully, but these errors were encountered: