-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Observable boolean initially set to true not working on iOS #5694
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
From @VladimirAmiorkov on April 16, 2018 19:4 Hi @felix-idf , Thank you for reporting this to us. I will take a closer look and see what may be causing this behavior on iOS. I will update you here once I have more information to share. |
From @VladimirAmiorkov on April 17, 2018 13:22 Hi @felix-idf , I managed to observe the described issue on iOS and it looks to be caused by the value (false) set to the
Also note that while having expressions in bindings like you have for the visibility in the app-root.xml make sure to set it like this, more details can be found here: I think this issue should be mover to the main NativeScript repository as it is caused by the data/observable module. @NickIliev What do you think, can we move this to https://github.com/NativeScript/NativeScript/issues ? |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
From @felix-idf on April 16, 2018 14:46
Did you verify this is a real problem by searching the NativeScript Forum?
Yes
Tell us about the problem
I wanted to take advantage of the latest release of nativescript 4.0 and nativescript-ui-sidedrawer, by sharing one single sidedrawer as the root view of the whole app. Everything seems to work as expected on Android, but I notice some issues on iOS.
Our SideDrawer should have different content for logged-in users and not logged-in users, so we bind the content of our drawer to an observable and by switching the "IsLoggedIn" property there, the content of the drawer should change. This scenario worked on previous versions of NativeScript and the SideDrawer component (where we had to define the Drawer on every single page).
Which platform(s) does your issue occur on?
iOS
Please provide the following version numbers that your issue occurs with:
tns --version
to fetch it): 4.0.0Please tell us how to recreate the issue in as much detail as possible.
Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.
Sample project can be found here:
NSIssues4.zip
Copied from original issue: ProgressNS/nativescript-ui-feedback#623
The text was updated successfully, but these errors were encountered: