Daniel Zlotin 7 years ago
parent
commit
a053fc6dd6

AndroidE2E/app/src/androidTest/java/com/reactnativenavigation/e2e/androide2e/ScreenStyleStaticTest.java → AndroidE2E/app/src/androidTest/java/com/reactnativenavigation/e2e/androide2e/NavigationOptionsTest.java View File

4
 
4
 
5
 import org.junit.Test;
5
 import org.junit.Test;
6
 
6
 
7
-public class ScreenStyleStaticTest extends BaseTest {
7
+public class NavigationOptionsTest extends BaseTest {
8
 
8
 
9
 	@Test
9
 	@Test
10
 	public void declareNavigationStyleOnContainerComponent() throws Exception {
10
 	public void declareNavigationStyleOnContainerComponent() throws Exception {

+ 1
- 1
lib/ios/RNNCommandsHandler.m View File

35
 
35
 
36
 -(void) setOptions:(NSString*)containerId options:(NSDictionary*)options {
36
 -(void) setOptions:(NSString*)containerId options:(NSDictionary*)options {
37
 	[self assertReady];
37
 	[self assertReady];
38
-	[_store findContainerForId:containerId].navigationItem.title = options[@"title"];
38
+	[[_store findContainerForId:containerId] setTitle:options[@"title"]];
39
 }
39
 }
40
 
40
 
41
 -(void) push:(NSString*)containerId layout:(NSDictionary*)layout {
41
 -(void) push:(NSString*)containerId layout:(NSDictionary*)layout {