You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ios/RNCPicker.mm
+15-21Lines changed: 15 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -20,20 +20,20 @@ @implementation RNCPicker
20
20
21
21
- (instancetype)initWithFrame:(CGRect)frame
22
22
{
23
-
if ((self = [superinitWithFrame:frame])) {
24
-
_color = [UIColor blackColor];
25
-
_font = [UIFont systemFontOfSize:21]; // TODO: selected title default should be 23.5
26
-
_selectedIndex = NSNotFound;
27
-
_textAlign = NSTextAlignmentCenter;
28
-
_numberOfLines = 1;
29
-
#ifdef RCT_NEW_ARCH_ENABLED
30
-
// nothing
31
-
#else
32
-
self.delegate = self;
33
-
#endif
34
-
self.dataSource = self;
35
-
[selfselectRow:0inComponent:0animated:YES]; // Workaround for missing selection indicator lines (see https://stackoverflow.com/questions/39564660/uipickerview-selection-indicator-not-visible-in-ios10)
36
-
}
23
+
self = [superinitWithFrame:frame];
24
+
if (!self) returnnil;
25
+
26
+
_color = [UIColor blackColor];
27
+
_font = [UIFont systemFontOfSize:21]; // TODO: selected title default should be 23.5
28
+
_selectedIndex = NSNotFound;
29
+
_textAlign = NSTextAlignmentCenter;
30
+
_numberOfLines = 1;
31
+
32
+
self.delegate = self;
33
+
self.dataSource = self;
34
+
35
+
[selfselectRow:0inComponent:0animated:YES]; // Workaround for missing selection indicator lines (see https://stackoverflow.com/questions/39564660/uipickerview-selection-indicator-not-visible-in-ios10)
0 commit comments