0
votes

I'm developing a xamarin forms class library (Custom Component) that targets (Windows, Androi and IOS) platforms "this library should be added to an existing Xamarin forms Portable project as DLL reference" and want to add a UI control and use it's native functions from inside the library. Custom renderers can't be added in PCLs so Can anyone help on how to access the control's native functionality?

1
You have to create nuget if I understand your question that will have separate dll for each platform.Rohit Vipin Mathews
Have a look at this Visual Studio extension it saves you a lot of work and gives you a general ideaGerald Versluis
thanks @Rohit for your replySamah Seddeik
thanks @gerald-versluis this typically solved my problemSamah Seddeik
Please let me upgrade it to an answer so you can accept it :)Gerald Versluis

1 Answers

0
votes

You can start from scratch on your by following this piece of documentation by Xamarin on how to build NuGet packages. Then just make sure you build them without too much references and test them in your sample projects.

But to make your life a lot easier have a look at this Visual Studio extension by James Montemagno. It installs some project templates for you so naming is consistent and you have the basics already setup to start building your reusable code.