RocketChat / RocketChat/Rocket.Chat.ReactNative

bug: app crashes when opening ModalSectionSelects

Open
#6,951 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

🐛 bug
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
  1. run storybook
  2. go to UIKitModal > ModalSectionSelects
  3. Open or render the modal.
  4. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.