Browse Source

ios - added relaunch app

Ran Greenberg 7 years ago
parent
commit
090ffcc8c4
2 changed files with 11 additions and 0 deletions
  1. 1
    0
      ios/RNN.m
  2. 10
    0
      playground/e2e/app.test.js

+ 1
- 0
ios/RNN.m View File

@@ -76,6 +76,7 @@
76 76
 
77 77
 -(void)onJavaScriptDevReload
78 78
 {
79
+	self.store = [RNNStore new];
79 80
 	UIApplication.sharedApplication.delegate.window.rootViewController = nil;
80 81
 }
81 82
 

+ 10
- 0
playground/e2e/app.test.js View File

@@ -38,6 +38,16 @@ describe('app', () => {
38 38
     elementByLabel('Pop').tap();
39 39
     expect(elementByLabel('React Native Navigation!')).toBeVisible();
40 40
   });
41
+  
42
+});
43
+
44
+describe('reload app', () => {
45
+  before(function (done) {
46
+    simulator.reloadReactNativeApp(done);
47
+  });
48
+  it('shows welcome screen', () => {
49
+    expect(elementByLabel('React Native Navigation!')).toBeVisible();
50
+  });
41 51
 });
42 52
 
43 53
 function elementByLabel(label) {