yogevbd 6 years ago
parent
commit
3a282ea24b
2 changed files with 2 additions and 1 deletions
  1. 1
    1
      e2e/Modals.test.js
  2. 1
    0
      lib/ios/RNNModalManager.m

+ 1
- 1
e2e/Modals.test.js View File

21
     await expect(elementById(testIDs.WELCOME_SCREEN_HEADER)).toBeVisible();
21
     await expect(elementById(testIDs.WELCOME_SCREEN_HEADER)).toBeVisible();
22
   });
22
   });
23
 
23
 
24
-  it(':android: unmount modal when dismissed', async () => {
24
+  it('unmount modal when dismissed', async () => {
25
     await elementById(testIDs.SHOW_MODAL_BUTTON).tap();
25
     await elementById(testIDs.SHOW_MODAL_BUTTON).tap();
26
     await expect(elementById(testIDs.MODAL_SCREEN)).toBeVisible();
26
     await expect(elementById(testIDs.MODAL_SCREEN)).toBeVisible();
27
     await elementById(testIDs.MODAL_LIFECYCLE_BUTTON).tap();
27
     await elementById(testIDs.MODAL_LIFECYCLE_BUTTON).tap();

+ 1
- 0
lib/ios/RNNModalManager.m View File

30
 			_completionBlock();
30
 			_completionBlock();
31
 			_completionBlock = nil;
31
 			_completionBlock = nil;
32
 		}
32
 		}
33
+		self.toVC = nil;
33
 	}];
34
 	}];
34
 }
35
 }
35
 
36