You registered a native on style 1 but the function you've used it is in the old one.
Take a real quick look at this post. So you can see where's the difference between style 1 and the old one.
I dont understand!!, Sorry this is my first time in native coding.