Microsoft.Reactnative exposes interface IViewManager which only works with Frameworkelement. Also there are no shadow nodes in current 0.63 version. I have codebase which is from 0.59-legacy version but now i want to create custom native component in CS using HyperlinkButton and TextBlock. Here is my component class from 0.59-legacy how can i convert below snippet in 0.63 version.
publicclassReactHyperlinkButtonViewManager:BaseControlViewManager<HyperlinkButton,ReactSimpleTextShadowNode>{publicoverridestringName=>"RCTHyperlinkButtonView";protectedoverrideHyperlinkButtonCreateViewInstance(ThemedReactContextreactContext){varview=newHyperlinkButton();view.Content=newTextBlock();returnview;}protectedoverridevoidAddEventEmitters(ThemedReactContextreactContext,HyperlinkButtonview){}publicoverridevoidOnDropViewInstance(ThemedReactContextreactContext,HyperlinkButtonview){}privatevoidOnPointerEntered(objectsender,RoutedEventArgse){}privatevoidOnPointerExited(objectsender,RoutedEventArgse){}privatevoidOnClick(objectsender,RoutedEventArgse){}privatevoidOnBlur(objectsender,RoutedEventArgse){}privatevoidOnFocus(objectsender,RoutedEventArgse){}publicoverrideReactSimpleTextShadowNodeCreateShadowNodeInstance(){returnnewReactSimpleTextShadowNode();}publicoverridevoidUpdateExtraData(HyperlinkButtonview,objectextraData){vartextNode=extraDataasReactSimpleTextShadowNode;if(textNode!=null){textNode.UpdateTextBlock((TextBlock)view.Content);}}}
Microsoft.Reactnative exposes interface IViewManager which only works with Frameworkelement. Also there are no shadow nodes in current 0.63 version. I have codebase which is from 0.59-legacy version but now i want to create custom native component in CS using HyperlinkButton and TextBlock. Here is my component class from 0.59-legacy how can i convert below snippet in 0.63 version.