First time you can setup nativescript from here
git clone https://github.com/ismail-codar/surplus-nativescript-template.git
cd surplus-nativescript-template
npm install
tns run android
tns create my-app
cd my-app
npm install --save s-js s-array surplus surplus-nativescript
- create a tsconfig.json in my-app folder like this content
- Setup hooks like this
- Add the line
require("surplus-nativescript")
to the top of the ./app/app.js file