Redirecting to your app’s settings in react-native app

Suraj M Durgad
Feb 11, 2022

--

Ever faced a situation where you need to redirect the users to your app’s settings since they haven’t given a permission?
Previously it was a tedious process to achieve this, you needed to install couple of libraries and and handle it differently of Android and iOS.
Now it’s fairly straight forward, just use -

import { Linking } from 'react-native';Linking.openSettings();

and just like that you can redirect the users to your apps settings page, voilà!

iOS
Android

--

--

Suraj M Durgad
Suraj M Durgad

Written by Suraj M Durgad

Mobile Engineer @quizizz, ping me @surajmdurgad

Responses (1)