From 5af9e2623304f48b0dc4178e6d81d0332fcf029b Mon Sep 17 00:00:00 2001 From: Eric Rozell Date: Thu, 10 Nov 2016 13:50:50 -0800 Subject: [PATCH] Update ReactVideoView.cs --- windows/ReactNativeVideo/ReactVideoView.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/ReactNativeVideo/ReactVideoView.cs b/windows/ReactNativeVideo/ReactVideoView.cs index 2e02bf67..9c3d6c18 100644 --- a/windows/ReactNativeVideo/ReactVideoView.cs +++ b/windows/ReactNativeVideo/ReactVideoView.cs @@ -315,7 +315,7 @@ namespace ReactNativeVideo private static async void RunOnDispatcher(DispatchedHandler action) { - await CoreApplication.GetCurrentView().Dispatcher.RunAsync(CoreDispatcherPriority.Normal, action).AsTask().ConfigureAwait(false); + await CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, action).AsTask().ConfigureAwait(false); } class ReactVideoEvent : Event