Skip to content

Conversation

@pmick
Copy link

@pmick pmick commented Dec 4, 2025

Getting our fork compatible with ios new arch, still some not so great stuff in here that needs to be cleaned up

layoutAnimationsManager_->transferConfigFromNativeID(nativeId, tag);
} catch (std::invalid_argument) {
} catch (std::out_of_range) {
} catch (...) {
Copy link
Author

Choose a reason for hiding this comment

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

This needs further investigation. In the monorepo this is throwing an invalid_argument exception but not being caught.

Copy link

Choose a reason for hiding this comment

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

yeah i remember we already fixed that once somewhere.
I think the bug was that auto nativeId = stoi(nativeIdString); the nativeid is usually a number, but when the user sets the nativeId prop as a regular text then this can throw, let me find what we did back then …

Copy link

Choose a reason for hiding this comment

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

ah right, the std::invalid_argument should catch this but in the past didn't due to misconfigured rtti and exceptions flags:

we should double check if we did regress that?

//std::function<std::optional<std::unique_ptr<int[]>>(std::vector<int> &)>;
auto preserveMountedTagsFunction = [](std::vector<int> &tags) -> std::optional<std::unique_ptr<int[]>> {
// TODO: Implement me
return nullptr;
Copy link
Author

Choose a reason for hiding this comment

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

This didn't seem to be called by ios new arch and can maybe be left as a noop.

Copy link

Choose a reason for hiding this comment

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

Yes, thats noop on iOS 👍

Copy link

Choose a reason for hiding this comment

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

just wondering if we can also ifdef android that 🤔 thats how SWM did it in the v4 code:

but i'd also be fine with having this here + a comment 🤷

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.

3 participants