ReactRootView
种类:class
继承自:Grid
一个承载 React Native UI 元素的 XAML 组件。
属性
ComponentName
string ComponentName
通过 AppRegistry.registerComponent
方法在 JavaScript 中注册的根 UI 组件的名称。
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 组件。