ReactRootView
种类:class
继承:Grid
一个承载 React Native UI 元素的 XAML 组件。
属性
ComponentName
string ComponentName
通过 AppRegistry.registerComponent
方法在 JavaScript 中注册的根 UI 组件的名称。
ExperimentalUseFabric
布尔值 ExperimentalUseFabric
实验性
将 Fabric 用于此 ReactRootView
InitialProps
JSValueArgWriter
InitialProps
用于序列化主组件初始属性的 JSValueArgWriter
。
IsPerspectiveEnabled
布尔值 IsPerspectiveEnabled
默认值:true
XAML 中 3D 的默认投影是正交的(所有线都平行)。然而,React Native 的默认投影是单点透视。此属性用于在主控件上设置默认透视投影以模仿此行为。
ReactNativeHost
ReactNativeHost
ReactNativeHost
与 ReactRootView
关联的 ReactNativeHost
。必须设置此项才能显示任何 React UI 元素。
构造函数
ReactRootView
ReactRootView
()
方法
ReloadView
void ReloadView
()
重新加载当前的 ReactRootView
UI 组件。