v4.0.0
4.0.0 (2023-05-03)
Features
- major: markdown hook support (cb87fda)
Doc: https://github.com/gmsgowtham/react-native-marked#using-hook
Breaking
styles.containerproperty is removed. Use FlatList style prop to customize the container
Before version 4
<Markdown
value={"Hello world"}
flatListProps={{
contentContainerStyle: {
margin: 8,
padding: 4,
},
}}
styles={{
container: {
backgroundColor: theme.colors.background,
},
}}
/>Version 4
<Markdown
value={"Hello world"}
flatListProps={{
contentContainerStyle: {
margin: 8,
padding: 4,
},
style: {
backgroundColor: theme.colors.background,
}
}}
/>