Open vmoroz opened 4 years ago
@vmoroz @chrisglein similar/same as #4549 ?
@asklar, this task is about improving the "outer" API, while the #4549 is concerned about refactoring the internals. E.g. removing the MS Office-specific namespaces as you have pointed in some PR feedback.
As for this task, currently the IDL for the ReactnativeHost exposes only ReloadInstance from the Mso::React::IReactHost and this method returns void
. It must return IAsyncAction
. We also must expose other methods such as UnloadInstace
, and maybe others that help to control and observe the ReactInstance lifetime.
Task: Improve Microsoft.ReactNative.dll Instance management API
Summary
Currently IReactNativeHost exposes only rudimentary API to reload ReactNative instance. It does not even allow to observe the result of the asynchronous operation. We must improve the IReactNativeHost to be matching the functionality of the IReactHost that we have internally.
Motivation