Check out example codes for "automapper c# initialize error". It will help you in understanding the concepts better.

Code Example 1

You might be using an older version of AutoMapper.Extensions.Microsoft.DependencyInjection
Install the latest version of AutoMapper.Extensions.Microsoft.DependencyInjection (I used v7.0.0)from NuGet and change services.AddAutoMapper( ) to services.AddAutoMapper(typeof(services)) in Startup.cs

Learn ReactJs, React Native from akashmittal.com