RocketChat / RocketChat/Rocket.Chat.ReactNative
bug: app crashes when opening ModalSectionSelects
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.4k
- Forks
- 1.5k
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 90
Description
Describe the Bug
Opening the “Modal – Section and Selects” ModalSectionSelects story causes the app to crash, while other modal stories work correctly.
The crash occurs when a modal contains a section block with fields. This block structure leads to a runtime failure during layout/rendering instead of rendering the modal or failing gracefully.
Steps to Reproduce
- run storybook
- go to UIKitModal > ModalSectionSelects
- Open or render the modal.
- Observe that the application crashes immediately.
Expected Behavior
The modal should render correctly
Actual Behavior
The app crashes immediately when the story is opened.
Rocket.Chat Server Version
latest
Rocket.Chat App Version
4.69.0
Device Name
iPhone 17 Pro simulator
OS Version
iOS 26
Additional Context
Screenshots
https://github.com/user-attachments/assets/460083e5-9eab-45d3-b91f-2177f97202c8
The Root Cause
The Section component was wrapping parsed markdown content inside a component:
Contributor 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.
Research direction
Run Storybook and open the UIKitModal > ModalSectionSelects story to reproduce the crash. Then locate the Section component and inspect how parsed markdown is rendered inside Text. Done means the section-with-fields modal renders without crashing and the relevant story still works.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native, typescript
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100