C# component is registered when native component is registered