Quantcast
Channel: How to make phone call in React Native? - Stack Overflow
Browsing latest articles
Browse All 13 View Live

Answer by Paulinho for How to make phone call in React Native?

An example:<ButtonOrange onPress={() => { Linking.openURL(`tel:999990000`) }}><ViewCenter><Icon name="phone" size={18} color="#fff"...

View Article



Answer by Massale for How to make phone call in React Native?

On android, react-native-send-intent is great to dial a phone number without opening android dialer app.On iOS, use the openUrl method which do (almost) the same.

View Article

Answer by ramashish tomar for How to make phone call in React Native?

import React, { Component } from "react";import {Linking,Platform,TouchableOpacity,Text} from "react-native";export default class MakeCall extends Component { dialCall = (number) => { let...

View Article

Answer by Sjonchhe for How to make phone call in React Native?

Simply onPress action with {Linking.openURL(tel:${phonenumber});} can be put<Text onPress={()=>{Linking.openURL('tel:8777111223');} }>8777111223</Text>ps:Dont forget to import Linking...

View Article

Answer by Codemaker for How to make phone call in React Native?

1. install react-native-phone-call package using npm$ npm install --save react-native-phone-call2. create a method called makeCall()makeCall = (number) => { const args = { number: number, // String...

View Article


Answer by hook zou for How to make phone call in React Native?

it is very simple for ios:import {Linking} from 'react-native'<Text onPress={()=>{Linking.openURL('tel:119');}} style={styles.funcNavText}>119</Text>

View Article

Answer by Aakash Daga for How to make phone call in React Native?

You can use this method to call numbers in android and ios, place this method in a utils file and use the method wherever you want. cheersimport { Linking, Alert, Platform } from 'react-native';export...

View Article

Answer by Tim for How to make phone call in React Native?

If you look at the source code for react-native-phone-call, it's ultimately just a wrapper for:import {Linking} from 'react-native'Linking.openURL(`tel:${phoneNumber}`)

View Article


Image may be NSFW.
Clik here to view.

How to make phone call in React Native?

I want to call to the value of Text component when I press it. But, actually, I haven't enough knowledge for that. Can you, please, tell me, which library or component should I use?

View Article


Answer by Sourabh Gera for How to make phone call in React Native?

import { View,Linking,Text, Image,Platform,TouchableOpacity } from 'react-native'; const onPressMobileNumberClick = (number) => { let phoneNumber = ''; if (Platform.OS === 'android') { phoneNumber =...

View Article

Answer by AngelNext for How to make phone call in React Native?

The simplest way of achieving this is like thisimport { Linking } from "react-native";Linking.openURL(`tel:${phoneNumber}`);

View Article

Answer by UMANG GUPTA for How to make phone call in React Native?

import {useNavigation} from '@react-navigation/native';import React from 'react';import {Linking,View, Button} from 'react-native';export function LegalScreen() { const navigation = useNavigation();...

View Article
Browsing latest articles
Browse All 13 View Live




Latest Images