react-native-navigation 7.30.0-alpha.1 → 7.30.0-alpha.1-snapshot.690
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -55,13 +55,13 @@
|
|
|
55
55
|
UIImage *icon = [iconCreator create:buttonOptions];
|
|
56
56
|
UIButton *button =
|
|
57
57
|
[[UIButton alloc] initWithFrame:CGRectMake(0, 0, icon.size.width, icon.size.height)];
|
|
58
|
-
|
|
59
58
|
[button addTarget:self
|
|
60
59
|
action:@selector(onButtonPressed:)
|
|
61
60
|
forControlEvents:UIControlEventTouchUpInside];
|
|
62
61
|
[button setImage:icon
|
|
63
62
|
forState:buttonOptions.isEnabled ? UIControlStateNormal : UIControlStateDisabled];
|
|
64
|
-
|
|
63
|
+
[button.widthAnchor constraintEqualToConstant:icon.size.width].active = YES;
|
|
64
|
+
[button.heightAnchor constraintEqualToConstant:icon.size.height].active = YES;
|
|
65
65
|
self = [super initWithCustomView:button];
|
|
66
66
|
[self applyOptions:buttonOptions];
|
|
67
67
|
self.onPress = onPress;
|
package/package.json
CHANGED