private void OnImageStatusUpdate(Border view, ImageStatusEventData status) { var eventDispatcher = view.GetReactContext() .GetNativeModule <UIManagerModule>() .EventDispatcher; eventDispatcher.DispatchEvent( new ReactImageLoadEvent( view.GetTag(), (int)status.LoadStatus, status.Metadata.Uri, status.Metadata.Width, status.Metadata.Height)); }
private void OnImageStatusUpdate(Border view, ImageStatusEventData status) { if (!view.HasTag()) { // View may have been unmounted, ignore. return; } var eventDispatcher = view.GetReactContext() .GetNativeModule <UIManagerModule>() .EventDispatcher; eventDispatcher.DispatchEvent( new ReactImageLoadEvent( view.GetTag(), (int)status.LoadStatus, status.Metadata.Uri, status.Metadata.Width, status.Metadata.Height)); }