-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add new arch support * fix: apply ktlint * fix: apply swiftformat * fix: fix after rebase * fix: remove recursion from findFirstTextField * feat: use one swift class for fabric and paper * fix: don't set value if text is the same * fix: apply ktlint * fix: build for iOS * fix: iOS build * fix: always install cocoapods
- Loading branch information
1 parent
dc2d667
commit 8e28d98
Showing
22 changed files
with
582 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package com.maskedtextinput.events | ||
|
||
object EventNames { | ||
const val CHANGE_TEXT_EVENT = "changeText" | ||
const val CHANGE_TEXT_EVENT = "onAdvancedMaskTextChange" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 0 additions & 12 deletions
12
android/src/main/oldarch/MaskedTextInputDecoratorViewSpec.kt
This file was deleted.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
...oid/src/newarch/java/com/maskedtextinput/AdvancedTextInputMaskDecoratorViewManagerSpec.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.maskedtextinput | ||
|
||
import android.view.View | ||
import com.facebook.react.uimanager.SimpleViewManager | ||
import com.facebook.react.uimanager.ViewManagerDelegate | ||
import com.facebook.react.viewmanagers.AdvancedTextInputMaskDecoratorViewManagerDelegate | ||
import com.facebook.react.viewmanagers.AdvancedTextInputMaskDecoratorViewManagerInterface | ||
|
||
abstract class AdvancedTextInputMaskDecoratorViewManagerSpec<T : View?> : | ||
SimpleViewManager<T>(), | ||
AdvancedTextInputMaskDecoratorViewManagerInterface<T> { | ||
private val mDelegate: ViewManagerDelegate<T> = AdvancedTextInputMaskDecoratorViewManagerDelegate(this) | ||
|
||
override fun getDelegate(): ViewManagerDelegate<T>? = mDelegate | ||
} |
68 changes: 68 additions & 0 deletions
68
...oid/src/oldarch/java/com/maskedtextinput/AdvancedTextInputMaskDecoratorViewManagerSpec.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
package com.maskedtextinput | ||
|
||
import android.view.View | ||
import com.facebook.react.bridge.ReadableArray | ||
import com.facebook.react.bridge.ReadableMap | ||
import com.facebook.react.uimanager.SimpleViewManager | ||
|
||
abstract class AdvancedTextInputMaskDecoratorViewManagerSpec<T : View?> : SimpleViewManager<T>() { | ||
abstract fun setPrimaryMaskFormat( | ||
view: T, | ||
mask: String?, | ||
) | ||
|
||
abstract fun setCustomNotations( | ||
view: T, | ||
customNotation: ReadableArray?, | ||
) | ||
|
||
abstract fun setDefaultValue( | ||
view: T, | ||
defaultValue: String?, | ||
) | ||
|
||
abstract fun setValue( | ||
view: T, | ||
value: String?, | ||
) | ||
|
||
abstract fun setAffinityCalculationStrategy( | ||
view: T, | ||
affinityCalculationStrategy: Int, | ||
) | ||
|
||
abstract fun setAffinityFormat( | ||
view: T, | ||
affinityFormat: ReadableArray?, | ||
) | ||
|
||
abstract fun setIsRTL( | ||
view: T, | ||
isRTL: Boolean = false, | ||
) | ||
|
||
abstract fun setAutoSkip( | ||
view: T, | ||
autoSkip: Boolean = false, | ||
) | ||
|
||
abstract fun setAutocomplete( | ||
view: T, | ||
autocomplete: Boolean = false, | ||
) | ||
|
||
abstract fun setCustomTransformation( | ||
view: T, | ||
customTransformation: ReadableMap? = null, | ||
) | ||
|
||
abstract fun setAllowSuggestions( | ||
view: T?, | ||
value: Boolean, | ||
) | ||
|
||
abstract fun setAutocompleteOnFocus( | ||
view: T?, | ||
value: Boolean, | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.