From fa8bbd458b11a48f81ed72e1b47a4a3f41282dc0 Mon Sep 17 00:00:00 2001 From: Mahmoud-El-Sayed-92 <67215710+Mahmoud-El-Sayed-92@users.noreply.github.com> Date: Sun, 22 Aug 2021 01:42:30 +0200 Subject: [PATCH] Update RNSnackBarView.m make RTL and font-family properties work with iOS. --- ios/RNSnackBarView.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ios/RNSnackBarView.m b/ios/RNSnackBarView.m index a8acbdf..d63ea30 100644 --- a/ios/RNSnackBarView.m +++ b/ios/RNSnackBarView.m @@ -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]; + textLabel.textAlignment = _pendingOptions[@"rtl"] ? NSTextAlignmentRight : NSTextAlignmentLeft ; self.text = _pendingOptions[@"text"]; self.callback = _pendingCallback;