oblador / react-native-collapsible

Animated collapsible component for React Native, good for accordions, toggles etc
MIT License
2.47k stars 452 forks source link

key extractor doesnt work inside render content of accordion #290

Open falopez10 opened 5 years ago

falopez10 commented 5 years ago

Imagine I need to use a flat list inside the content of a certain header. Flatlist works like charm except for when I use keyExtractor:

`_renderContent = section => { return (

item.name} data={["sad","happy", "angry"]} renderItem={(item)=>{ console.log({item}); return Promotion; }} />
);

};`

In this case the accordion ends up rendering empty content for the section.