WordCloud View for React Native
To use this, import the WordCloud
object:
import { WordCloud } from 'triz-react-native-wordcloud';
Use WordCloud
like this.
<WordCloud
wordList={
[
{ title: 'Item1', point: 1 },
{ title: 'Item2', point: 2 },
...
]
}
colorList={...}
minFontSize={...}
style={...}
/>
wordList (Required)
The item of list must have
title and point
point
should be integer type(0 ~ N)
colorList (Requried)
Each color value corresponds to point
of word
object.
minFontSize (Optional)
This will decide the minimum font size of each tag.
Default size is 12.
style (Optional)
This style is for container.
tagPaddingLeft, tagPaddingTop, tagPaddingRight, tagPaddingBottom (Optional)
Default value is 20.
Version | Tag | Published |
---|---|---|
1.0.21 | latest | 2yrs ago |