-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feat: new arch support #7
Conversation
008f719
to
e47ebb7
Compare
@@ -1,5 +1,5 @@ | |||
package com.maskedtextinput.events | |||
|
|||
object EventNames { | |||
const val CHANGE_TEXT_EVENT = "changeText" | |||
const val CHANGE_TEXT_EVENT = "onAdvancedMaskTextChange" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally me - I am keeping this as a companion object for Event class. I think such approach better follows SOLID principles where you should have only one reason to change a file
If you keep all events in one class, then you have more reasons: you may add new event, you may remove old event, etc.
@@ -41,34 +42,32 @@ class MaskedTextInputDecoratorViewManager( | |||
} | |||
|
|||
@ReactProp(name = "defaultValue") | |||
fun setDefaultValue( | |||
view: MaskedTextInputDecoratorView, | |||
override fun setDefaultValue( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this property comes from RN? Why do you need to manage these properties?..
textView.delegate = maskInputListener | ||
updateTextWithoutNotification(text: defaultValue as String) | ||
} | ||
private func finTextField() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fin?) 🇫🇮
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to add spell check to prevent such issues in future 🙂
I found a way how to run cspell
for entire project, you know where you can take a reference 🙂
As a developer, I want to add support for the new arch to have the latest features and make this library compatible with applications that enable the new arch.