Skip to content

Commit 6deffb6

Browse files
committed
feat: 更新 readme
1 parent 181d534 commit 6deffb6

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

README.md

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,32 @@
5656

5757
## 🔨 使用方法
5858
```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+
})
6077

61-
// TODO: What to do with the module?
62-
FINMopsdk;
6378
```
6479

80+
## 📱 DEMO
81+
[点击这里](https://github.com/finogeeks/finclip-react-native-demo) 查看 React Native Demo
82+
6583
## 📋 接口文档
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 快速集成文档
6785

6886
## 🔗 常用链接
6987
以下内容是您在 FinClip 进行开发与体验时,常见的问题与指引信息

0 commit comments

Comments
 (0)