Skip to content

Commit 583534f

Browse files
committed
fix:appid
1 parent 3b42446 commit 583534f

File tree

1 file changed

+20
-17
lines changed

1 file changed

+20
-17
lines changed

example/App.js

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,33 +12,36 @@ import React, { Component } from 'react';
1212
import { Platform, StyleSheet, Text, View, Button } from 'react-native';
1313
import MopSDK from 'react-native-mopsdk';
1414
const onPressOpenCanvasApplet = () => {
15-
MopSDK.openApplet('5e933835b795a5000199d547', '', '', (data) => { });
15+
MopSDK.openApplet('5ea03fa563cb900001d73863', '', '', (data) => { });
1616
};
1717
const onPressOpenDemoApplet = () => {
18-
MopSDK.openApplet('5e4d123647edd60001055df1', '', '', (data) => { });
18+
MopSDK.openApplet('5ea0401463cb900001d73865', '', '', (data) => { });
1919
};
2020
const onPressOpenProfileApplet = () => {
21-
MopSDK.openApplet('5e637a18cbfae4000170fa7a', '', '', (data) => { });
21+
MopSDK.openApplet('5ea0412663cb900001d73867', '', '', (data) => { });
2222
};
2323
export default class App extends Component<{}> {
2424
state = {
2525
status: 'starting',
26-
message: '--'
26+
message: '--',
2727
};
2828
componentDidMount() {
29-
MopSDK.initialize({
30-
appkey: '22LyZEib0gLTQdU3MUauASlb4KFRNRajt4RmY6UDSucA',
31-
secret: '4a915e447bcbd439',
32-
apiServer: 'https://mp.finogeeks.com',
33-
apiPrefix: '/api/v1/mop'
34-
}, (data) => {
35-
console.log('message;', data);
36-
const s = JSON.stringify(data);
37-
this.setState({
38-
status: 'native callback received',
39-
message: s
40-
});
41-
});
29+
MopSDK.initialize(
30+
{
31+
appkey: '22LyZEib0gLTQdU3MUauASlb4KFRNRajt4RmY6UDSucA',
32+
secret: 'c5cc7a8c14a2b04a',
33+
apiServer: 'https://mp.finogeeks.com',
34+
apiPrefix: '/api/v1/mop',
35+
},
36+
(data) => {
37+
console.log('message;', data);
38+
const s = JSON.stringify(data);
39+
this.setState({
40+
status: 'native callback received',
41+
message: s,
42+
});
43+
},
44+
);
4245
}
4346
render() {
4447
return (

0 commit comments

Comments
 (0)