@gyjshow/react-native-alipay 1.0.4 → 1.0.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.
@@ -18,7 +18,7 @@ class RNAlipayModule(
18
18
  * 发起支付
19
19
  */
20
20
  @ReactMethod
21
- fun pay(orderInfo: String, promise: Promise) {
21
+ fun alipay(orderInfo: String, promise: Promise) {
22
22
  val activity: Activity? = reactApplicationContext.currentActivity
23
23
  if (activity == null) {
24
24
  promise.reject("NO_ACTIVITY", "Current activity is null")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gyjshow/react-native-alipay",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "private": false,
5
5
  "description": "基于 React Native 的支付宝插件,支持 Android / iOS。",
6
6
  "main": "lib/index.js",