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

Crash on selection on iOS versions below 14 after latest iOS 14 hotfix #78

Closed
AnthonyLenglet opened this issue Oct 5, 2020 · 5 comments · May be fixed by #79
Closed

Crash on selection on iOS versions below 14 after latest iOS 14 hotfix #78

AnthonyLenglet opened this issue Oct 5, 2020 · 5 comments · May be fixed by #79

Comments

@AnthonyLenglet
Copy link

Which platform(s) does your issue occur on?

  • iOS
  • iOS 13.7, 12.4, anything below iOS 14
  • emulator and device

Please, provide the following version numbers that your issue occurs with:

  • Plugin(s): 1.2.3

Please, tell us how to recreate the issue in as much detail as possible.

Trying to open the datepicker was fixed in iOS 14, but the fix broke every other iOS versions apparently, we're getting a huge flood of error with it

I'm thinking it might be due to this line, since color.ios turned into color for no real explanation, and the core-module still has an ios getter from what I've seen

-            nativePicker.setValueForKey(color.ios, "textColor");
+            if (this.SUPPORT_TEXT_COLOR) {
+                nativePicker.setValueForKey(color, 'textColor');
+            }
@AnthonyLenglet
Copy link
Author

Xcode compilation with this test fix was happening as I was filling this:

            if (this.SUPPORT_TEXT_COLOR) {
                nativePicker.setValueForKey(color.ios, 'textColor');
            }

and I can confirm that this fixes the issue on iOS versions below 14 while still working under iOS 14, will make a PR ASAP !

@mhtghn
Copy link

mhtghn commented Oct 26, 2020

@NathanWalker this issue is still there on NS 6 version of this plugin.
I cant upgrade to NS 7 due to some plugins not compatible yet.

Can you please fix it for NS 6 app as well ?

@AnthonyLenglet
Copy link
Author

@NathanWalker this issue is still there on NS 6 version of this plugin.
I cant upgrade to NS 7 due to some plugins not compatible yet.

Can you please fix it for NS 6 app as well ?

thats odd, since I am using NS6 still, and the issue has been fixed on our end

@mhtghn
Copy link

mhtghn commented Oct 26, 2020

Weird can you double check that you are using NS6 please, and which version of the plugin you have.

Im using the latest 1.2.3 and you can also see that the fix you provided in your PR has not been applied.

nativePicker.setValueForKey(color, 'textColor');

@AnthonyLenglet
Copy link
Author

yep nevermind, the PR isn't closed yet
#79

We have a local copy of the library that we built ourselves, didn't realise it wasn't merged yet, sorry !

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

Successfully merging a pull request may close this issue.

2 participants