Skip to main content
Version: 0.83

ReactCoreInjection

Kind: class

EXPERIMENTAL

Used to inject platform specific implementations to create react-native targets targeting non-XAML platforms.

Methods​

GetTopLevelWindowId​

static uint64_t GetTopLevelWindowId(IReactPropertyBag properties)

EXPERIMENTAL

Gets the window handle HWND (as an UInt64) for the active top level application window.

MakeViewHost​

static IReactViewHost MakeViewHost(ReactNativeHost host, ReactViewOptions viewOptions)

EXPERIMENTAL

Custom ReactViewInstances use this to create a host to connect to.

PostToUIBatchingQueue​

static void PostToUIBatchingQueue(IReactContext context, ReactDispatcherCallback callback)

EXPERIMENTAL

Post something to the main UI dispatcher using the batching queue

SetPlatformNameOverride​

static void SetPlatformNameOverride(IReactPropertyBag properties, string platformName)

EXPERIMENTAL

Override platform name. This will change the platform used when requesting bundles from metro. Default: "windows"

SetTimerFactory​

static void SetTimerFactory(IReactPropertyBag properties, TimerFactory timerFactory)

EXPERIMENTAL

Sets a factory method for creating custom timers, in environments where system dispatch timers should not be used.

SetTopLevelWindowId​

static void SetTopLevelWindowId(IReactPropertyBag properties, uint64_t windowId)

EXPERIMENTAL

Sets the window handle HWND (as an UInt64) for the active top level application window.This must be manually provided to the ReactInstanceSettings object when using ReactNativeWindowswithout XAML for certain APIs work correctly.

SetUIBatchCompleteCallback​

static void SetUIBatchCompleteCallback(IReactPropertyBag properties, UIBatchCompleteCallback xamlRoot)

EXPERIMENTAL

Sets the Callback to call when a UI batch is completed.