Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class EnrichedMarkdownTextInputManager :
view: EnrichedMarkdownTextInputView?,
value: String?,
) {
view?.hint = value
view?.setUserHint(value)
}

@ReactProp(name = "placeholderTextColor", customType = "Color")
Expand Down Expand Up @@ -198,13 +198,20 @@ class EnrichedMarkdownTextInputManager :
if (view == null || value == null) return

val style = MarkdownStyleParser.parse(value)
view.setAutoLinkStyle(style)
val changed = view.formatter.updateStyle(style)
val changed = view.setMarkdownStyleFromProps(style)
if (changed) {
view.applyFormatting()
}
}

@ReactProp(name = "listItemSpacing", defaultInt = 0)
override fun setListItemSpacing(
view: EnrichedMarkdownTextInputView?,
value: Int,
) {
view?.setListItemSpacingFromProps(value.toFloat())
}

@ReactProp(name = "color", customType = "Color")
override fun setColor(
view: EnrichedMarkdownTextInputView?,
Expand Down Expand Up @@ -429,6 +436,22 @@ class EnrichedMarkdownTextInputManager :
view?.toggleHeading(level)
}

override fun toggleUnorderedList(view: EnrichedMarkdownTextInputView?) {
view?.toggleUnorderedList()
}

override fun toggleOrderedList(view: EnrichedMarkdownTextInputView?) {
view?.toggleOrderedList()
}

override fun indentList(view: EnrichedMarkdownTextInputView?) {
view?.indentList()
}

override fun outdentList(view: EnrichedMarkdownTextInputView?) {
view?.outdentList()
}

override fun setLink(
view: EnrichedMarkdownTextInputView?,
url: String?,
Expand Down
Loading
Loading