I am glad to hear that you have resolved your problem and you are able to keep work on your project.
Regarding the topic, all snippets shown on the UI for NativeScript docs
come from the nativescript-ui-samples
, where all code samples are tested with the latest version of the plugin.
In case, the code fragment, you have used, come from the docs, could you please provide a link to the article, and we will verify if there is a real issue with it.
Bear in mind that you could use the sample application here
as a starting point and as a simple way to verify, how the components work.
Thank you in advance for your cooperation.