I need to as about the code structure. What is not mentioned in the example is that where to put your native iOS project.
Second when I have implemented the code in class I am getting this error

And more over my implementation at TS level in ionic is as follows:
