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

Feat: new arch support #7

Merged
merged 11 commits into from
Oct 27, 2024
Merged

Feat: new arch support #7

merged 11 commits into from
Oct 27, 2024

Conversation

IvanIhnatsiuk
Copy link
Owner

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.

@IvanIhnatsiuk IvanIhnatsiuk self-assigned this Oct 25, 2024
@IvanIhnatsiuk IvanIhnatsiuk added the enhancement New feature or request label Oct 25, 2024
@IvanIhnatsiuk IvanIhnatsiuk merged commit 8e28d98 into main Oct 27, 2024
5 checks passed
@@ -1,5 +1,5 @@
package com.maskedtextinput.events

object EventNames {
const val CHANGE_TEXT_EVENT = "changeText"
const val CHANGE_TEXT_EVENT = "onAdvancedMaskTextChange"

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(

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() {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fin?) 🇫🇮

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 🙂

@IvanIhnatsiuk IvanIhnatsiuk deleted the feat/new-arch-support branch December 11, 2024 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants