react-native-send-intent icon indicating copy to clipboard operation
react-native-send-intent copied to clipboard

Does not know the library after installation

Open hamid-manzar opened this issue 5 years ago • 5 comments

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

hamid-manzar avatar Nov 10 '19 07:11 hamid-manzar

Hi @golab2576

What is your RN version?

lucasferreira avatar Nov 13 '19 12:11 lucasferreira

Hi @lucasferreira RN version is 0.55.4 Thanks

hamid-manzar avatar Nov 14 '19 14:11 hamid-manzar

Hi @golab2576

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

lucasferreira avatar Nov 14 '19 15:11 lucasferreira

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

hamid-manzar avatar Nov 15 '19 10:11 hamid-manzar

  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';
  1. 😃 DONE ! enjoy android intent call 😄

karriz-dev avatar Nov 24 '20 01:11 karriz-dev