lucasferreira / react-native-send-intent

React Native Android module to use Android's Intent actions for send text to shareable apps or make phone calls or opening third party apps
419 stars 159 forks source link

Does not know the library after installation #110

Open hamid-manzar opened 4 years ago

hamid-manzar commented 4 years ago

I installed this library automatically and manually exactly as instructed but when I run it gives the following error: undefined is not an object (evaluating ‘_reactNativeSendIntent.SendINtentAndroid.sendPhoneCall’) Automatically link with: react-native link react-native-send-intent and Manually

The problem with defining a library is as follows: var SendIntentAndroid = require(‘react-native-send-intent’);

I even define it below, but it still works import SendIntentAndroid from ‘react-native-send-intent’; or import {SendIntentAndroid} from ‘react-native-send-intent’; what should I do? Thanks

lucasferreira commented 4 years ago

Hi @golab2576

What is your RN version?

hamid-manzar commented 4 years ago

Hi @lucasferreira RN version is 0.55.4 Thanks

lucasferreira commented 4 years ago

Hi @golab2576

Thats an old version of RN, I will have to try your RN version to see what could be.

hamid-manzar commented 4 years ago

Thank you, but I'm involved in the project right now. I can't upgrade the software version

karriz-dev commented 3 years ago
  1. Update RN version to latest. (I'm using 0.63.3)
  2. execute auto link command.
  3. import this code at the top your code.
    import SendIntentAndroid from 'react-native-send-intent';
  4. 😃 DONE ! enjoy android intent call 😄