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
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.

None yet

3 participants