Преглед на файлове

Fixes crash when button.title is undefined

yogevbd преди 6 години
родител
ревизия
ce24fcdc67
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1
    1
      lib/ios/RNNNavigationButtons.m

+ 1
- 1
lib/ios/RNNNavigationButtons.m Целия файл

@@ -63,7 +63,7 @@
63 63
 
64 64
 -(RNNUIBarButtonItem*)buildButton: (NSDictionary*)dictionary defaultStyle:(RNNButtonOptions *)defaultStyle {
65 65
 	NSString* buttonId = dictionary[@"id"];
66
-	NSString* title = [self getValue:dictionary[@"text"] withDefault:defaultStyle.text];
66
+	NSString* title = [self getValue:dictionary[@"text"] withDefault:[defaultStyle.text getWithDefaultValue:@""]];
67 67
 	NSDictionary* component = dictionary[@"component"];
68 68
 	
69 69
 	if (!buttonId) {