react-native-windows icon indicating copy to clipboard operation
react-native-windows copied to clipboard

Add ViewComponent support to new library template

Open jonthysell opened this issue 1 year ago • 4 comments

Summary

The current cpp-lib template targets a new (turbo) module. We also need to support new View Components

Motivation

Some people will need to create custom ViewComponents.

Basic Example

No response

Open Questions

Can we have just one template for libs or will we need two, to match what create-react-native-library creates?

jonthysell avatar Jan 25 '24 19:01 jonthysell

Assigning to @marlenecota as she's getting RN SVG working and will be able to use that to influence the ViewComponent codegen we need in RNW.

jonthysell avatar May 07 '24 20:05 jonthysell

@marlenecota this might be partially completed by additions Andrew made for View. Work next is to compare to what's done and compare the differences. Update this item with what's done / what remains.

chrisglein avatar Sep 12 '24 21:09 chrisglein

@marlenecota Can you link Andrew's PR that added an example to this issue?

chrisglein avatar Oct 09 '24 18:10 chrisglein

@marlenecota Can you link Andrew's PR that added an example to this issue?

#13640

marlenecota avatar Oct 09 '24 21:10 marlenecota

@jonthysell With your current tracking is this a dupe of existing issues?

chrisglein avatar Dec 18 '24 19:12 chrisglein

Closing. The NativeModuleSample/cpp-lib shows a working example of adding a ViewComponent to a cpp-lib module without any changes to RNW core code

jonthysell avatar Mar 12 '25 17:03 jonthysell