card-react-native 1.0.5 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -77,7 +77,7 @@ def kotlin_version = getExtOrDefault("kotlinVersion")
77
77
  dependencies {
78
78
  implementation "com.facebook.react:react-android"
79
79
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
80
- implementation('com.github.Tap-Payments:Card-Android:1.0.9.13') {
80
+ implementation('com.github.Tap-Payments:Card-Android:1.0.13') {
81
81
  exclude group: 'com.google.firebase', module: 'firebase-iid'
82
82
  }
83
83
  implementation 'com.google.firebase:firebase-core:+'
@@ -96,6 +96,16 @@ class CardSdkReactNativeViewManager : SimpleViewManager<View>() {
96
96
  .receiveEvent(view.id, "onHeightChange", event)
97
97
  }
98
98
 
99
+ override fun onInValidInput(isValid: Boolean) {
100
+ val event = Arguments.createMap().apply {
101
+ putBoolean("data",isValid)
102
+ }
103
+ val reactContext = view.context as ReactContext
104
+ reactContext
105
+ .getJSModule(RCTEventEmitter::class.java)
106
+ .receiveEvent(view.id, "onInvalidInput", event)
107
+ }
108
+
99
109
  override fun onBindIdentification(data: String) {
100
110
  val event = Arguments.createMap().apply {
101
111
  putString("data", data)
@@ -16,15 +16,15 @@ Pod::Spec.new do |s|
16
16
 
17
17
  s.source_files = "ios/**/*.{h,m,mm,swift}"
18
18
 
19
-
19
+
20
20
  # Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
21
21
  # See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
22
22
  if respond_to?(:install_modules_dependencies, true)
23
23
  install_modules_dependencies(s)
24
- s.dependency 'Card-iOS', '1.0.4'
24
+ s.dependency 'Card-iOS', '1.0.6'
25
25
  else
26
26
  s.dependency "React-Core"
27
- s.dependency 'Card-iOS', '1.0.4'
27
+ s.dependency 'Card-iOS', '1.0.6'
28
28
  # Don't install the dependencies when we run `pod install` in the old architecture.
29
29
  if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
30
30
  s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "card-react-native",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "Tap Card SDK Wrapper",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/module/index.js",