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

Make RTL and font-family properties work with iOS #188

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mmmelsayed
Copy link

make RTL and font-family properties work with iOS.

make RTL and font-family properties work with iOS.
Copy link
Owner

@cooperka cooperka left a comment

Choose a reason for hiding this comment

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

Thanks for this @Mahmoud-El-Sayed-92! It looks good, I'll test it on my emulator as soon as I can, and then release this.

If you're able to, could you please also update the README to remove the "Android only" text for these parameters? Documentation is important! Cheers.

@@ -262,7 +262,8 @@ - (void)show {

id textColor = _pendingOptions[@"textColor"];
self.textColor = textColor ? [RCTConvert UIColor:textColor] : [UIColor whiteColor];

textLabel.font = [UIFont fontWithName:_pendingOptions[@"fontFamily"] size:15];
Copy link
Owner

Choose a reason for hiding this comment

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

Clarifying question: do you know that 15 is the default size? Why does this need to be explicitly set?

Copy link

Choose a reason for hiding this comment

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

@cooperka cooperka changed the title Update RNSnackBarView.m Make RTL and font-family properties work with iOS May 9, 2023
@LeXuanKhanh
Copy link

LeXuanKhanh commented Nov 18, 2024

@cooperka Hi, whats the status of the PR ? if the author doesn't respond I can open another PR related to this. Our current project have an issue related the text font changing in iOS

@cooperka
Copy link
Owner

hi @LeXuanKhanh, yes, please open a new PR for this to address the above feedback. the author hasn't responded. thank you.

@LeXuanKhanh
Copy link

LeXuanKhanh commented Nov 19, 2024

hi @LeXuanKhanh, yes, please open a new PR for this to address the above feedback. the author hasn't responded. thank you.

Hi I have opened a new PR, can you please review it ? thanks

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

Successfully merging this pull request may close these issues.

4 participants