fix:appid
parent
c3937af95e
commit
8ba9379879
37
App.js
37
App.js
|
@ -12,33 +12,36 @@ import React, { Component } from 'react';
|
||||||
import { Platform, StyleSheet, Text, View, Button } from 'react-native';
|
import { Platform, StyleSheet, Text, View, Button } from 'react-native';
|
||||||
import MopSDK from 'react-native-mopsdk';
|
import MopSDK from 'react-native-mopsdk';
|
||||||
const onPressOpenCanvasApplet = () => {
|
const onPressOpenCanvasApplet = () => {
|
||||||
MopSDK.openApplet('5e933835b795a5000199d547', '', '', (data) => { });
|
MopSDK.openApplet('5ea03fa563cb900001d73863', '', '', (data) => { });
|
||||||
};
|
};
|
||||||
const onPressOpenDemoApplet = () => {
|
const onPressOpenDemoApplet = () => {
|
||||||
MopSDK.openApplet('5e4d123647edd60001055df1', '', '', (data) => { });
|
MopSDK.openApplet('5ea0401463cb900001d73865', '', '', (data) => { });
|
||||||
};
|
};
|
||||||
const onPressOpenProfileApplet = () => {
|
const onPressOpenProfileApplet = () => {
|
||||||
MopSDK.openApplet('5e637a18cbfae4000170fa7a', '', '', (data) => { });
|
MopSDK.openApplet('5ea0412663cb900001d73867', '', '', (data) => { });
|
||||||
};
|
};
|
||||||
export default class App extends Component<{}> {
|
export default class App extends Component<{}> {
|
||||||
state = {
|
state = {
|
||||||
status: 'starting',
|
status: 'starting',
|
||||||
message: '--'
|
message: '--',
|
||||||
};
|
};
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
MopSDK.initialize({
|
MopSDK.initialize(
|
||||||
appkey: '22LyZEib0gLTQdU3MUauASlb4KFRNRajt4RmY6UDSucA',
|
{
|
||||||
secret: '4a915e447bcbd439',
|
appkey: '22LyZEib0gLTQdU3MUauASlb4KFRNRajt4RmY6UDSucA',
|
||||||
apiServer: 'https://mp.finogeeks.com',
|
secret: 'c5cc7a8c14a2b04a',
|
||||||
apiPrefix: '/api/v1/mop'
|
apiServer: 'https://mp.finogeeks.com',
|
||||||
}, (data) => {
|
apiPrefix: '/api/v1/mop',
|
||||||
console.log('message;', data);
|
},
|
||||||
const s = JSON.stringify(data);
|
(data) => {
|
||||||
this.setState({
|
console.log('message;', data);
|
||||||
status: 'native callback received',
|
const s = JSON.stringify(data);
|
||||||
message: s
|
this.setState({
|
||||||
});
|
status: 'native callback received',
|
||||||
});
|
message: s,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
);
|
||||||
}
|
}
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in New Issue