File tree Expand file tree Collapse file tree 1 file changed +22
-4
lines changed Expand file tree Collapse file tree 1 file changed +22
-4
lines changed Original file line number Diff line number Diff line change 56
56
57
57
## 🔨 使用方法
58
58
``` javascript
59
- import FINMopsdk from ' react-native-mopsdk' ;
59
+ import MopSDK from ' react-native-mopsdk' ;
60
+ import { NativeModules , NativeEventEmitter } from ' react-native' ;
61
+
62
+ // 初始化
63
+ const eventEmitter = new NativeEventEmitter (NativeModules .FINMopSDK );
64
+ MopSDK .initialize ({
65
+ appkey:
66
+ ' Ev7QHvml1UcW98Y1GaLfRz34ReffbDESaTXbCoFyKhEm0a3gam0elOOOdZ6Twpa3HkBzlvOwJ2cyhOrMVWuuGw==' ,
67
+ secret: ' 16f2d2700453ae51' ,
68
+ apiServer: ' https://api.finclip.com' ,
69
+ apiPrefix: ' /api/v1/mop/' ,
70
+ nativeEventEmitter: eventEmitter,
71
+ finMopSDK: NativeModules .FINMopSDK ,
72
+ }).then (res => {
73
+ console .log (' 初始化成功' )
74
+ }).catch (err => {
75
+ console .log (' 初始化失败' )
76
+ })
60
77
61
- // TODO: What to do with the module?
62
- FINMopsdk;
63
78
```
64
79
80
+ ## 📱 DEMO
81
+ [ 点击这里] ( https://github.com/finogeeks/finclip-react-native-demo ) 查看 React Native Demo
82
+
65
83
## 📋 接口文档
66
- [ 点击这里] ( https://www.finclip.com/mop/document/introduce/quickStart/intergration-guide .html#_4-reactnative-%E5%BF%AB%E9%80%9F%E9%9B%86%E6%88%90 ) 查看 React Native 快速集成文档
84
+ [ 点击这里] ( https://www.finclip.com/mop/document/runtime-sdk/reactNative/rn-integrate .html ) 查看 React Native 快速集成文档
67
85
68
86
## 🔗 常用链接
69
87
以下内容是您在 FinClip 进行开发与体验时,常见的问题与指引信息
You can’t perform that action at this time.
0 commit comments