FlatList renderItem error, TypeError: undefined (evaluating 'item.id')
问题 I have a FlatList where I put some data in from my database. In the render method, the state.data is correctly displayed when I console.log it. But in the renderItem method I try to print the item object but it doesn't display and then the error appears: TypeError: undefined is not an object (evaluating 'item.id') This error is located at: in VirtualizedList (at FlatList.js:662) in FlatList (at PlanView.js:49) in RCTView (at View.js:44) in TestLocalisation (at App.js:9) in App (at