Browse Source

Show overlay on entire screen

Guy Carmeli 7 years ago
parent
commit
b01decc2d6

+ 2
- 2
lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/Navigator.java View File

131
 	}
131
 	}
132
 
132
 
133
 	public void showOverlay(ViewController overlay) {
133
 	public void showOverlay(ViewController overlay) {
134
-        overlayManager.show(root.getView(), overlay);
134
+        overlayManager.show(getView(), overlay);
135
 	}
135
 	}
136
 
136
 
137
 	public void dismissOverlay(final String componentId) {
137
 	public void dismissOverlay(final String componentId) {
138
-		overlayManager.dismiss(root.getView(), componentId);
138
+		overlayManager.dismiss(getView(), componentId);
139
 	}
139
 	}
140
 
140
 
141
 	static void rejectPromise(Promise promise) {
141
 	static void rejectPromise(Promise promise) {