Today I Learned

A Hashrocket project

How to open the Settings App in ReactNative 0.60

ReactNative version 0.60 adds a function to the Linking API called openSettings that will open the Settings app and display the permissions.

import { Button, Linking } from "react-native";

const Screen = () => (
  <Button
    title="Open Settings"
    onPress={() => {
      Linking.openSettings();
    }}
  />
);
Looking for help? At Hashrocket, our JavaScript experts launch scalable, performant apps on the Web, Android and iOS. Contact us and find out how we can help you.