Closed marcelbonfim182 closed 5 years ago
Hey @marcelbonfim182 , your code is a total mess. You are double setting the bindingContext
, you have bound some events that are not present in your code.
Here is a running sample of your code with cleaned up things: https://play.nativescript.org/?template=play-js&id=6b8vGd
For future please refer to the demo projects in the repo and the readme in order to understand how the plugin is to be used. Those are there for a reason!
Hello, it worked perfectly now! Thank you very much for your support!
I installed the plugin and tried to run the following code in plain nativescript (pure javascript), but only black screen appears.
`const Observable = require ("tns-core-modules/data/observable").Observable; const ObservableArray = require("tns-core-modules/data/observable-array").ObservableArray; const Page = require("tns-core-modules/ui/page").Page;
const PageChangeEventData = require ("nativescript-image-swipe");`
`function onNavigatingTo(args) { page = args.object; page.bindingContext = new GaleriadeimagensViewModel();
}
exports.onNavigatingTo = onNavigatingTo;`
`
`