Skip to content

Commit

Permalink
feat(list item bullet): enable setting up your own unicode character
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesMangwa committed Oct 15, 2016
1 parent d5d06b7 commit eae1f6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Example:
- `inlineCode` (`<Text>`)
- `image` (`<Image>`) - You can use `resizeMode` in `<Markdown />` styles prop to set a resizeMode
- `link` (`Text`)
- `list` (`<View>`) - Also `listItem` (`<View>`), `listItemBullet` (`<Text>`), `listItemNumber` (`<Text>`) and `listItemText` (`<Text>`)
- `list` (`<View>`) - Also `listItem` (`<View>`), `listItemBullet` (`<Text>`), `listItemBulletType` (`Unicode character`), `listItemNumber` (`<Text>`) and `listItemText` (`<Text>`)
- `mailTo` (`Text`)
- `paragraph` (`<View>`)
- `plainText` (`<Text>`) - Use for styling text without any associated styles
Expand Down
2 changes: 1 addition & 1 deletion rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export default (styles) => ({
bullet = createElement(Text, { key: state.key, style: styles.listItemNumber }, (i + 1) + '. ')
}
else {
bullet = createElement(Text, { key: state.key, style: styles.listItemBullet }, '\u2022 ')
bullet = createElement(Text, { key: state.key, style: styles.listItemBullet }, styles.listItemBulletType ? `${styles.listItemBulletType} ` : '\u2022 ')
}
const listItemText = createElement(Text, { key: state.key + 1, style: styles.listItemText }, output(item, state))
return createElement(View, {
Expand Down

0 comments on commit eae1f6d

Please sign in to comment.