Skip to content

Conversation

@emily8rown
Copy link
Contributor

Summary:
D86420230 added a dismiss button feature to RCTDevLoadingView. However, when adding layout constraints on line 198, it incorrectly checked the dismissButton parameter instead of the self->_dismissButton instance variable. This caused NSLayoutConstraint crashes when the parameter was nil/false but the instance variable existed from a previous call, or vice versa.

This changes line 198 to check self->_dismissButton (the instance variable) instead of dismissButton (the function parameter) to properly verify if the button exists before adding constraints to it.

Differential Revision: D87871856

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 25, 2025
@meta-codesync
Copy link

meta-codesync bot commented Nov 25, 2025

@emily8rown has exported this pull request. If you are a Meta employee, you can view the originating Diff in D87871856.

…54690)

Summary:

Changelog:
[iOS][Fixed] - Fixed crash from dismiss button in DevLoadingView

D86420230 added a dismiss button feature to RCTDevLoadingView. However, when adding layout constraints on line 198, it incorrectly checked the `dismissButton` parameter instead of the `self->_dismissButton` instance variable. This caused NSLayoutConstraint crashes when the parameter was nil/false but the instance variable existed from a previous call, or vice versa.

This changes line 198 to check `self->_dismissButton` (the instance variable) instead of `dismissButton` (the function parameter) to properly verify if the button exists before adding constraints to it.

Reviewed By: vzaidman, javache

Differential Revision: D87871856
emily8rown added a commit to emily8rown/react-native that referenced this pull request Nov 26, 2025
…54690)

Summary:

Changelog:
[iOS][Fixed] - Fixed crash from dismiss button in DevLoadingView

D86420230 added a dismiss button feature to RCTDevLoadingView. However, when adding layout constraints on line 198, it incorrectly checked the `dismissButton` parameter instead of the `self->_dismissButton` instance variable. This caused NSLayoutConstraint crashes when the parameter was nil/false but the instance variable existed from a previous call, or vice versa.

This changes line 198 to check `self->_dismissButton` (the instance variable) instead of `dismissButton` (the function parameter) to properly verify if the button exists before adding constraints to it.

Reviewed By: vzaidman, javache

Differential Revision: D87871856
emily8rown added a commit to emily8rown/react-native that referenced this pull request Nov 26, 2025
…54690)

Summary:

Changelog:
[iOS][Fixed] - Fixed crash from dismiss button in DevLoadingView

D86420230 added a dismiss button feature to RCTDevLoadingView. However, when adding layout constraints on line 198, it incorrectly checked the `dismissButton` parameter instead of the `self->_dismissButton` instance variable. This caused NSLayoutConstraint crashes when the parameter was nil/false but the instance variable existed from a previous call, or vice versa.

This changes line 198 to check `self->_dismissButton` (the instance variable) instead of `dismissButton` (the function parameter) to properly verify if the button exists before adding constraints to it.

Reviewed By: vzaidman, javache

Differential Revision: D87871856
emily8rown added a commit to emily8rown/react-native that referenced this pull request Nov 26, 2025
…54690)

Summary:

Changelog:
[iOS][Fixed] - Fixed crash from dismiss button in DevLoadingView

D86420230 added a dismiss button feature to RCTDevLoadingView. However, when adding layout constraints on line 198, it incorrectly checked the `dismissButton` parameter instead of the `self->_dismissButton` instance variable. This caused NSLayoutConstraint crashes when the parameter was nil/false but the instance variable existed from a previous call, or vice versa.

This changes line 198 to check `self->_dismissButton` (the instance variable) instead of `dismissButton` (the function parameter) to properly verify if the button exists before adding constraints to it.

Reviewed By: vzaidman, javache

Differential Revision: D87871856
@meta-codesync meta-codesync bot closed this in 6793f5c Nov 26, 2025
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Nov 26, 2025
@meta-codesync
Copy link

meta-codesync bot commented Nov 26, 2025

This pull request has been merged in 6793f5c.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants