-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
- CLI: 6.8.0
- Cross-platform modules: 6.5.25 or newer
- Android Runtime: 6.5.0
- iOS Runtime: 6.5.0
- XCode Version: Not applicable
- Plugin(s): Fresh project
Describe the bug
Same bug as reported in #6454. With tns-core-modules 6.5.24 tab transition animation is completely smooth in Android devices after installing the 6.5.25 version of this same package an identical problem to the one shown in the related issue reappears again.
With two added things:
- Projects created by CLI version 6.8.0 (which will create a
package.jsonfile with"tns-core-modules": "~6.5.0", that resolves to v6.5.25), will show this animation error. Moreover, with the defaultTabstemplate, quickly tapping "search", "browse" and "home" starting from home view, will leave home view blank and unusable. - Projects created by CLI version 7.1.2 only show the flash animation on tab load, which becomes less prevalent once a tab has been already loaded. Blank page problem does not appear in this version.
To Reproduce
- Install NativeScript CLI 6.8.0 (or 7.1.2, hadn't tested with latest version from a few days ago)
- Create a new Angular or TS project (happens in both, hadn't tested with other flavors because they don't come with the Tabs template) and choose
Tabstemplate. - Run the application as it is on an Android device (I have tested with Android 7, 8.1 and 9, same problem in all versions).
- Navigate from one tab to another to see page load flash.
- (optional) For projects created with CLI v6.8.0, navigate from "Home" tab to "Search" and "Browse", then go back to "Home". To ensure reproducibility, tab tap must be done at the moment each page loads. "Home" page will appear blank then, thus breaking the app.
Expected behavior
Tab pages should not flash upon navigating to them, like with tns-core-modules v6.5.24
Sample project
Buggy project with tns-core-modules v6.5.25 https://github.com/agonper/ns-az-pipelines/tree/1f1f1a7a929843e55154bb91374ea710f48a4e50
Same project with tns-core-modules v6.5.24 (working without issues) https://github.com/agonper/ns-az-pipelines/tree/5c4d6ed9ae836755d46f0d779e6cc7cfc1422320
Additional context
Bug seems to have been solved previously (#6454) but a regression seems to have been induced between tns-core-modules 6.5.24 and 6.5.25