[iOS] Tags not parsed on iOS below a certain string length
Maintainers usually reply within 4 days
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- ios, objective-c, react-native
- Domain
- mobile
Research direction
Start by reproducing with the snippet in the issue: render <p> strings of increasing length through the EnrichedText component on an iOS simulator and on Android to confirm the difference. The payload names no source files, so locate the iOS parsing path from the EnrichedText component. Done means <p> and other tags are parsed on iOS at every string length, matching Android, with the snippet rendering identically on both platforms.
Written by the indexing model from the issue text.
Description
Describe the bug
Tags on iOS don't start being parsed until the string reaches a certain length, on Android this is not the case
To Reproduce
Run the code example below on iOS and Android
<View>
{[...Array(10).keys()].map((_, i) =>
{
const html = `<p>${'a'.repeat(i)}</p>`;
return (
<View key={i}>
<Text>Length: {html.length}</Text>
<EnrichedText>{html}</EnrichedText>
</View>
)
})}
</View>
Expected behavior
Tags should be parsed and not displayed within EnrichedText regardless of string length (as happens on android)
Device:
-
Device: iphone 16 pro simulator
-
OS: iOS 18.3.1
-
Version: 1.1.1
-
Device: iphone 6e
-
OS: iOS 15.8.5
-
Version: 1.1.1
- Dominant language
- C
- Stars
- 1.4k
- Forks
- 77
- Avg merge
- 3d 14h
- Merged PRs (30d)
- 24
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from software-mansion/react-native-enriched-html
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
software-mansion/react-native-enriched-html#862 ·
Maintainers usually reply within 4 days
-
Typing or autocorrecting inside a mention strips it to plain textPossibly taken @JaydeepAgravat claimed this 8 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 70/100
software-mansion/react-native-enriched-html#855 · 8 comments · 1 reaction ·
Maintainers usually reply within 4 days
-
[Feature request] Vertical spacing (margins) for headings and lists in htmlStylePossibly taken @henrikra claimed this 24 days ago. Openenhancement
Difficulty 4/5 3-5 days Newbie friendliness 20/100
software-mansion/react-native-enriched-html#832 · 1 comment · 1 reaction ·
Maintainers usually reply within 4 days
-
[iOS, Android, Web] Return on an empty list item adds another item instead of ending the listPossibly taken @szydlovsky claimed this 7 days ago. Openbug
Difficulty 3/5 1-2 days Newbie friendliness 50/100
software-mansion/react-native-enriched-html#810 · 1 comment ·
Maintainers usually reply within 4 days
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
software-mansion/react-native-enriched-html#803 ·
Maintainers usually reply within 4 days
All issues in software-mansion/react-native-enriched-html
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
libretro/parallel-n64#858 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Mbed-TLS/TF-PSA-Crypto#984 ·
Maintainers usually reply within 2 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
enhancement help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 72/100