mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 11:01:21 +08:00

* fix the crash * chore: update MaterialComponents pod (#8176) * chore: update MaterialComponents pod * chore: remove copy of pod file in build script * chore: cut the 6.3.0 release (#8174) * hore: cut the 6.3.1 release * fix: handle fake attach after FragMgr is destroyed (#8200) * fix: check is disposed fragment is in the FragmentManager (#8201) * release: cut the 6.3.2 release * release: cut the 6.4.0 release * chore(build): always use local typescript * fix: flipLeft and flipRight on Android (#8307) * fix(android): tap-trip-item title disappearing * fix(andoid): crash when setting font on tab-item with no image * fix(build): Add platforms/android to NPM package (#8312) Co-authored-by: Dimitar Topuzov <dtopuzov@gmail.com> Co-authored-by: Alexander Vakrilov <alexander.vakrilov@gmail.com> * release: cut the 6.4.1 release * chore: bump tns-core-modules-widgets version (#8352) Co-authored-by: hamidbsd <50081218+hamidbsd@users.noreply.github.com> Co-authored-by: Alexander Vakrilov <alexander.vakrilov@gmail.com> Co-authored-by: Dimitar Topuzov <dtopuzov@gmail.com> Co-authored-by: Nick Iliev <nikolay.iliev@telerik.com> Co-authored-by: Martin Bektchiev <martin.bektchiev@progress.com> Co-authored-by: Rosen Vladimirov <rosen-vladimirov@users.noreply.github.com>
Use the frame in the following way:
To navigate to the starting page of the application
// put this in the bootstrap.js
var app = require("application");
var frameModule = require("ui/frame");
app.onLaunch = function(context) {
var frame = new frameModule.Frame();
frame.navigate("testPage");
}
// or use the mainModule property of the application module
// in this a Frame instance is internally created and used to navigate to the main page module
app.mainModule = "testPage";
To navigate to a new Page
// take the frame from an existing (and navigatedTo) Page instance
var frame = page.frame;
frame.navigate("newPage");
To navigate to a new Activity (Android)
// create a new Frame instance
var frameModule = require("ui/frame");
var frame = new frameModule.Frame();
frame.navigate("newPage");