Closed vanhoang2012 closed 5 months ago
Bạn cài thư viện này có build đc release không, mình cứ bị lỗi linked command failed
in sendMessage
function you can pass in the URL of your attachment with link
.
Zalo SDK doesn't support sending attachment directly as file
import { sendMessage } from 'react-native-zalo-kit'
const sendMessage = async () => {
try {
const friendId = 'friend_ID'
const link = 'https://zing.vn'
const message = 'Hello World'
const data = await sendMessage(friendId, message, link)
console.log(data)
/*
returns: {
to: 'friend_ID'
}
*/
} catch (error) {
console.log(error)
}
}
Bạn cài thư viện này có build đc release không, mình cứ bị lỗi linked command failed
Mình build bình thường bạn ạ, bạn check lại xem nhé.
npx react-native build-android --mode=release
How to add attachment with function sendMessageByZalo