Jobeso / react-native-whatsapp-stickers

Integrate sticker packs for WhatsApp with your react-native app
Other
81 stars 30 forks source link

_reactNativeWhatsappStickers.default.send is not a function #46

Open imdadatgol opened 4 years ago

imdadatgol commented 4 years ago

send function is giving error for Android. I have check react-native-whatsapp-stickers node_modules index file. It does not have send function


import { Linking, NativeModules } from 'react-native'

const { RNWhatsAppStickers } = NativeModules

const isWhatsAppAvailable = () =>
  new Promise((resolve, reject) =>
    Linking.canOpenURL('whatsapp://send')
      .then(supported => resolve(supported))
      .catch(e => reject(e))
  )
export default { ...RNWhatsAppStickers, isWhatsAppAvailable }
hszeto commented 4 years ago

Are you using expo?

imdadatgol commented 4 years ago

@hszeto No I'm using react native cli

Arslan106 commented 4 years ago

me too having the same problem @hszeto and i am also not using expo...

Arslan106 commented 4 years ago

@hszeto I have just saw your repo you are using something like this in package.json file "react-native-whatsapp-stickers": "file:..", please explain it...

Jobeso commented 4 years ago

@Arslan106 This is just for easier debugging. When you use the example repo it uses the master from one folder above as a dependency and not the released npm package.

Arslan106 commented 4 years ago

@hszeto thanks for replay, so what should i do because i am getting this error _reactNativeWhatsappStickers.default.send is not a function but when i clone your project it work fine

imdadatgol commented 4 years ago

We resolved the issue by following this link https://github.com/antoniomdk/react-native-whatsapp-stickers

Actually there was linking issue, and it was resolved after following above configurations.

HossamBhi commented 2 years ago

@hszeto Can you told me how i solve this problem?