Daniel Zlotin 7 år sedan
förälder
incheckning
a053fc6dd6

AndroidE2E/app/src/androidTest/java/com/reactnativenavigation/e2e/androide2e/ScreenStyleStaticTest.java → AndroidE2E/app/src/androidTest/java/com/reactnativenavigation/e2e/androide2e/NavigationOptionsTest.java Visa fil

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

+ 1
- 1
lib/ios/RNNCommandsHandler.m Visa fil

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