Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(iOS): add canCoalesce method to RNSHeaderHeightChangeEvent #1933

Merged
merged 2 commits into from
Oct 23, 2023

Conversation

tboba
Copy link
Member

@tboba tboba commented Oct 20, 2023

Description

It looks like when I was implementing class that is representing the onHeaderHeightChange I made a mistake and I forgot / accidentally removed canCoalesce method which led to displaying RNSHeaderHeightChangeEvent: unrecognized selector sent to instance for a couple of users.

This issue resolves that error by adding canCoalesce method to the event.
Fixes #1932.

Changes

  • Added canCoalesce method to RNSHeaderHeightChangeEvent file

Test code and steps to reproduce

You can test the changes by checking Test1802.tsx component in FabricTestExample.

Checklist

  • Ensured that CI passes

@tboba tboba requested a review from kkafar October 20, 2023 15:13
@tboba tboba self-assigned this Oct 20, 2023
Copy link
Member

@kkafar kkafar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just left a question

ios/events/RNSHeaderHeightChangeEvent.mm Outdated Show resolved Hide resolved
@kkafar
Copy link
Member

kkafar commented Oct 20, 2023

Also please link the issue in the PR description.

Use "Closes/Fixes/..." syntax.

Copy link
Member

@kkafar kkafar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tboba tboba merged commit b6db977 into main Oct 23, 2023
5 checks passed
@tboba tboba deleted the @tboba/fix-cancoalesce-method branch October 23, 2023 14:55
ja1ns pushed a commit to WiseOwlTech/react-native-screens that referenced this pull request Oct 9, 2024
…tware-mansion#1933)

## Description

It looks like when I was implementing class that is representing the
`onHeaderHeightChange` I made a mistake and I forgot / accidentally
removed `canCoalesce` method which led to displaying
`RNSHeaderHeightChangeEvent: unrecognized selector sent to instance` for
a couple of users.

This issue resolves that error by adding `canCoalesce` method to the
event.
Fixes software-mansion#1932.

## Changes

- Added `canCoalesce` method to `RNSHeaderHeightChangeEvent` file

## Test code and steps to reproduce

You can test the changes by checking `Test1802.tsx` component in
FabricTestExample.

## Checklist

- [ ] Ensured that CI passes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RNSHeaderHeightChangeEvent: unrecognized selector sent to instance
2 participants