You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Android, applying a bold heading (htmlStyle.h1.bold: true) to an empty line removes bold from the previous line. Turning a new empty line into a heading unexpectedly strips the bold formatting from the line above it.
See error: line A loses its bold, while the new line correctly becomes a heading.
Expected behavior
Applying a heading on the new/empty line should only affect previous line- it must keep its bold formatting. Removing a conflicting inline style should be scoped to the requested range ([start, end]) and preserve the parts of the span that fall outside it.
Video
Untitled.mp4
Device:
Device: Galaxy A70 (reproduced on physical device)
OS: Android 11
Version: react-native-enriched-html 1.0.0
Additional context
Platform-specific: happens on Android only. iOS is unaffected - toggling a heading there never strips bold from adjacent lines.
Only reproduces when the heading is configured as bold (htmlStyle.h1.bold: true / h2.bold: true).
Describe the bug
On Android, applying a bold heading (
htmlStyle.h1.bold: true) to an empty line removes bold from the previous line. Turning a new empty line into a heading unexpectedly strips the bold formatting from the line above it.To Reproduce
Steps to reproduce the behavior (Android):
EnrichedTextInputwithhtmlStyle={{ h1: { bold: true }, h2: { bold: true } }}.Expected behavior
Applying a heading on the new/empty line should only affect previous line- it must keep its bold formatting. Removing a conflicting inline style should be scoped to the requested range (
[start, end]) and preserve the parts of the span that fall outside it.Video
Untitled.mp4
Device:
react-native-enriched-html1.0.0Additional context
htmlStyle.h1.bold: true/h2.bold: true).