Source:  Twitter logo

I am trying to find a way how to open the google play store with my application when the user is pressing a button inside of the react-native application. Is there a way how to do this?

If people are too lazy to read through the annoyingly SPA dev docs of android:


In react-native land:




Edit: Make sure to import Linking in order to use it

import { View, Text, StyleSheet, Linking } from 'react-native';
55 users liked answer #0dislike answer #055
flaky profile pic

You can use deeplinking to redirect your user from your app using this:

and the Linking API from react-native:

13 users liked answer #1dislike answer #113
Guillaume S. profile pic
Guillaume S.

For future users, you could go on to read the docs from the accepted answer for more info. But if you want a faster result, here it is.

Using Linking from react-native as

import { Linking } from 'react-native'


If you're using expo, then the below code is for you.

Install the expo-linking package via expo install expo-linking

import * as Linking from "expo-linking";


NOTE: <package_name> is your app's package name defined in the manifest file or app.json if you're using expo

4 users liked answer #2dislike answer #24
Nathileo profile pic

Seems like this package is a cool alternative.

Available for React Native, and Expo

0 users liked answer #3dislike answer #30
Broda Noel profile pic
Broda Noel

Copyright © 2022 QueryThreads

All content on Query Threads is licensed under the Creative Commons Attribution-ShareAlike 3.0 license (CC BY-SA 3.0).