Geek Culture
Published in

Geek Culture

Integrating Truecaller SDK in React Native

Photo by Lindsey LaMont on Unsplash

1. Install & link package

npm install react-native-truecaller-sdk — save
npm link react-native-truecaller-sdk

2. Create Application on Truecaller dashboard

NOTE: Different app builds ( debug / release ) have different SHA1 fingerprints and hence would have different & unique app keys, as a single app key corresponds to a particular combination of package name and SHA-1. You need to manage your debug / release builds by creating separate keys.

3. App side Setup and Configuration

<meta-data android:name="com.truecaller.android.sdk.PartnerKey" android:value="@string/truecaller_appkey"/>
<string name="truecaller_appkey">1234567abcdef</string>

4. Complete Class Code

--

--

A new tech publication by Start it up (https://medium.com/swlh).

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store