Skip to content
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

Theme bug on IOS #299

Open
gustavost26 opened this issue Apr 4, 2022 · 0 comments
Open

Theme bug on IOS #299

gustavost26 opened this issue Apr 4, 2022 · 0 comments

Comments

@gustavost26
Copy link

Good afternoon folks.

Environment

Tested on both versions:

NativeScript Global Version: 8.1.5

"@nativescript/core": "~8.1.0"
"@nativescript/android": "8.1.0",
"@nativescript/ios": "~8.1.0",

and

Current global version: 8.2.3

"@nativescript/core": "~8.2.0",
"@nativescript/android": "8.2.0",
"@nativescript/ios": "~8.2.0",

Theme plugin:

"@nativescript/theme": "~3.0.0"

Describe the bug

With the dark theme activated, it ends up getting lost when exiting and returning to the application, follow the video link to show how it works:

https://youtube.com/shorts/boyHN839QFs

With the option (system) selected by default or by the user, the theme is not lost when leaving and returning to the application, youtube link for demonstration:

https://youtube.com/shorts/rr6613_ky6k

This bug only occurs on IOS, on android everything works perfectly.

Additional context

In the application state, the selected dark theme is saved.

Apparently the project code is all right.
The dark variable is being called from localstorage but not applied by the theme plugin.

When you leave and enter the application, the variable 'dark' is set but the light theme is applied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant