para-bridge-demo
Version:
a bridge api for js-ios/andriod rest
21 lines (18 loc) • 357 B
Markdown
``` tsx
interface IContactItem {
contactName: string;
mobile: string;
}
interface IGetSelectedContactResult {
contactList: IContactItem[];
}
private getSelectedContact = () => {
getSelectedContact().then(result => {
this.setState({
payload: JSON.stringify(result),
});
}).catch(err => {
alert(JSON.stringify(err));
});
}
```