mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Re-factored page navigation transitions. Resolves Issue #811.
This commit is contained in:
@@ -171,12 +171,12 @@ export class NavPage extends Page implements definition.ControlsPage {
|
||||
var customTransitionModule = require("./custom-transition");
|
||||
var customTransition = new customTransitionModule.CustomTransition(duration, curve);
|
||||
navigationTransition = {
|
||||
transition: customTransition
|
||||
instance: customTransition
|
||||
};
|
||||
}
|
||||
else {
|
||||
navigationTransition = {
|
||||
transition: transitionName,
|
||||
name: transitionName,
|
||||
duration: duration,
|
||||
curve: curve
|
||||
};
|
||||
@@ -188,7 +188,7 @@ export class NavPage extends Page implements definition.ControlsPage {
|
||||
backstackVisible: addToBackStackSwitch.checked,
|
||||
clearHistory: clearHistorySwitch.checked,
|
||||
animated: animatedSwitch.checked,
|
||||
navigationTransition: navigationTransition,
|
||||
transition: navigationTransition,
|
||||
});
|
||||
});
|
||||
stackLayout.addChild(forwardButton);
|
||||
|
||||
Reference in New Issue
Block a user