Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Render NativeDrawables with keeping proportions

  • Loading branch information
Khaled Tantawy authored and mahmoud-adam85 committed Sep 7, 2018
1 parent ab40228 commit c4e87dbe1a982c36b06097713dc9786a15398542
Showing with 3 additions and 1 deletion.
  1. +3 −1 Cliqz/React Components/Modules/NativeDrawable.m
@@ -19,7 +19,9 @@ @implementation NativeDrawable

- (UIView *)view
{
return [[UIImageView alloc] init];
UIImageView* imageView = [[UIImageView alloc] init];
[imageView setContentMode:UIViewContentModeScaleAspectFit];
return imageView;
}

RCT_CUSTOM_VIEW_PROPERTY(color, NSString, UIImageView) {

0 comments on commit c4e87db

Please sign in to comment.