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
It turns out (facebook/react-native#36828 (comment)) adding @babel/plugin-transform-flow-strip-types allows to avoid problems with <FlatList> when using private methods. Perhaps, with this in mind we can use them again.
birdofpreyru
changed the title
React Native TypeError: undefined is not an object (evaluating 'props.getItem')
Re-evaluate the possibility to use private methods (and @babel/plugin-proposal-private-methods) in the codebase again
Oct 4, 2023
Hi,
thank you for fixing this project!
How to reproduce this error:
Just use FlatList and this project with the recommended plugin @babel/plugin-proposal-private-methods.
Here are two issues from stackoverflow (FYI: I am not using Expo):
https://stackoverflow.com/questions/69178384/react-native-typeerror-undefined-is-not-an-object-evaluating-props-getitem
https://stackoverflow.com/questions/69922302/react-native-flatlist-undefined-is-not-an-object-evaluating-props-getitem
Is this a possible solution?
src/index.ts
The text was updated successfully, but these errors were encountered: