react-native-fpay 0.2.4 → 0.2.5
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.
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-fpay",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "Fountain Pay react-native sdk library",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"module": "./lib/module/index.js",
|
|
7
7
|
"types": "./lib/typescript/src/index.d.ts",
|
|
8
|
-
"react-native": "
|
|
8
|
+
"react-native": "s5c/index",
|
|
9
9
|
"source": "src/index",
|
|
10
10
|
"exports": {
|
|
11
11
|
".": {
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
package com.fpay
|
|
2
|
-
|
|
3
|
-
import com.facebook.react.bridge.ReactApplicationContext
|
|
4
|
-
|
|
5
|
-
class FpayModule(reactContext: ReactApplicationContext) :
|
|
6
|
-
NativeFpaySpec(reactContext) {
|
|
7
|
-
|
|
8
|
-
override fun multiply(a: Double, b: Double): Double {
|
|
9
|
-
return a * b
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
companion object {
|
|
13
|
-
const val NAME = NativeFpaySpec.NAME
|
|
14
|
-
}
|
|
15
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
package com.fpay
|
|
2
|
-
|
|
3
|
-
import com.facebook.react.BaseReactPackage
|
|
4
|
-
import com.facebook.react.bridge.NativeModule
|
|
5
|
-
import com.facebook.react.bridge.ReactApplicationContext
|
|
6
|
-
import com.facebook.react.module.model.ReactModuleInfo
|
|
7
|
-
import com.facebook.react.module.model.ReactModuleInfoProvider
|
|
8
|
-
import java.util.HashMap
|
|
9
|
-
|
|
10
|
-
class FpayPackage : BaseReactPackage() {
|
|
11
|
-
override fun getModule(name: String, reactContext: ReactApplicationContext): NativeModule? {
|
|
12
|
-
return if (name == FpayModule.NAME) {
|
|
13
|
-
FpayModule(reactContext)
|
|
14
|
-
} else {
|
|
15
|
-
null
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
override fun getReactModuleInfoProvider() = ReactModuleInfoProvider {
|
|
20
|
-
mapOf(
|
|
21
|
-
FpayModule.NAME to ReactModuleInfo(
|
|
22
|
-
name = FpayModule.NAME,
|
|
23
|
-
className = FpayModule.NAME,
|
|
24
|
-
canOverrideExistingModule = false,
|
|
25
|
-
needsEagerInit = false,
|
|
26
|
-
isCxxModule = false,
|
|
27
|
-
isTurboModule = true
|
|
28
|
-
)
|
|
29
|
-
)
|
|
30
|
-
}
|
|
31
|
-
}
|