Explorar el Código

Fixes crash when button.title is undefined

yogevbd hace 6 años
padre
commit
30ffc07ea6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      lib/ios/RNNNavigationButtons.m

+ 1
- 1
lib/ios/RNNNavigationButtons.m Ver fichero

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