shpongle2634 / react-native-kakao-links

React-Native Kakao Link Module
MIT License
28 stars 21 forks source link

Property 'link' does not exist on type '(options: Object) => Promise<Object>'. #34

Open miao-codes opened 2 years ago

miao-codes commented 2 years ago

예시에 나와있는 형태로 임포트를 하고 location 함수 입력...

const linkLocation = async () => { try { const options = { objectType: 'location', //required content: contentObject, //required address: '경기 성남시 분당구 판교역로 235 에이치스퀘어 N동 8층', addressTitle: '카카오 판교오피스 카페톡', // buttonTitle:'',//optional buttons랑 사용 불가. buttons: [buttonObject], //optional }; const response = await RNKakaoLink.link({options: options}); console.log(response); } catch (e) { console.warn(e); } };

진행했는데 link 에 빨간줄 생기며 Property 'link' does not exist on type '(options: Object) => Promise'. 라는 타입스크립트 에러가 발생됩니다.