In this function we would first use the platform component to check the device is android or ios then if device is android then store the number value in phoneNumber variable. This function is the backbone of our project. ![]() Stepsġ) Import StyleSheet, Text, View, TouchableOpacity, Linking and Platform component in your react native project’s App.js file.Ģ) Create a function named as dialCall() in your main class. Note: the tutorial work perfectly fine on Android emulator and real device but not on iOS simulator. So in this tutorial we would check out how to open Open Phone Dialer on Android & iOS. ![]() In react native we would use the Linking library to make this possible.
0 Comments
Leave a Reply. |