Benjamin-Dobell / react-native-markdown-view

MarkdownView for React Native
MIT License
190 stars 77 forks source link

Table rendered the same when content change dynamically #17

Open yoavkamary opened 6 years ago

yoavkamary commented 6 years ago

Hi, I have a MarkdownView holding a table with content bounded to an array. When the array changes I trigger re rendering but the table's content doesn't change as expected.

I managed to fix this behavior by changing the key property on the table's Grid component, at renders.js line 170 from <Grid key={state.key} style={styles.table}> to import uuid from 'uuid'; ... <Grid key={uuid.v4()} style={styles.table}>

Does anyone has a better solution?