【发布时间】:2020-12-31 14:25:47
【问题描述】:
我有一个使用 Expo Contact 模块来自动更新联系人的项目。
这是我更新所选电话号码的脚本
const updateContact = async (callId, newCall) => {
getSingleContact(callId)
.then(resp => {
.......
Contacts.updateContactAsync(contact)
.then(updCall => console.log('updateCall :::> ', updCall))
})
.catch(error => console.log('Error detected :::> ', error))
}
我的程序返回 callId
请解释我如何通过联系人模块更新数据
【问题讨论】:
标签: javascript node.js react-native expo