Skip to content

Conversation

@IvanIhnatsiuk
Copy link
Contributor

Summary

The file EnrichedTextInputView.mm it's huge, and it's really difficult to work with it. So now it handles everything, including styles/props/style application logic, etc. I decided to simplify it by dividing the logic into different classes with the same responsibility. So, the easiest way is to transfer the styles to a separate file.

This PR code basically moves all the styles to a separate file to reduce the number of lines and simplify the logic in EnrichedTextInputView.mm

Test Plan

Build an example app for iOS

Screenshots / Videos

Include any visual proof that helps reviewers understand the change — UI updates, bug reproduction or the result of the fix.

Compatibility

OS Implemented
iOS
Android

@IvanIhnatsiuk IvanIhnatsiuk changed the title feat(iOS): move all styles the a separate file feat(iOS): move all styles in a separate file Dec 1, 2025
Copy link
Collaborator

@szydlovsky szydlovsky left a comment

Choose a reason for hiding this comment

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

Only some naming and/or organisation-wise changes we need

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd rename it to MakeStyles.h and place it inside of makeStyles folder to have it organized a bit better

EnrichedTextInputMakeStyles(__kindof EnrichedTextInputView *input);

FOUNDATION_EXPORT NSDictionary<NSNumber *, NSArray<NSNumber *> *> *
EnrichedTextInputConflictingStyles(void);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
EnrichedTextInputConflictingStyles(void);
EnrichedTextInputMakeConflictingStyles(void);

EnrichedTextInputConflictingStyles(void);

FOUNDATION_EXPORT NSDictionary<NSNumber *, NSArray<NSNumber *> *> *
EnrichedTextInputBlockingStyles(void);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
EnrichedTextInputBlockingStyles(void);
EnrichedTextInputMakeBlockingStyles(void);

Copy link
Collaborator

Choose a reason for hiding this comment

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

Same, would rename to MakeStyles.mm and place inside makeStyles folder

};
}

NSDictionary<NSNumber *, NSArray<NSNumber *> *> *EnrichedTextInputConflictingStyles(void) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
NSDictionary<NSNumber *, NSArray<NSNumber *> *> *EnrichedTextInputConflictingStyles(void) {
NSDictionary<NSNumber *, NSArray<NSNumber *> *> *EnrichedTextInputMakeConflictingStyles(void) {

return dict;
}

NSDictionary<NSNumber *, NSArray<NSNumber *> *> *EnrichedTextInputBlockingStyles(void) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
NSDictionary<NSNumber *, NSArray<NSNumber *> *> *EnrichedTextInputBlockingStyles(void) {
NSDictionary<NSNumber *, NSArray<NSNumber *> *> *EnrichedTextInputMakeBlockingStyles(void) {

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.

2 participants