From 42146520506fdec0d534b0a259c61067153703e5 Mon Sep 17 00:00:00 2001 From: Brent Vatne Date: Sun, 5 Apr 2020 18:15:08 -0700 Subject: [PATCH] Polyfill for Linking.openSettings on iOS --- Libraries/Linking/Linking.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Libraries/Linking/Linking.js b/Libraries/Linking/Linking.js index 284f2336a5b3d4..ff188a679da907 100644 --- a/Libraries/Linking/Linking.js +++ b/Libraries/Linking/Linking.js @@ -74,6 +74,9 @@ class Linking extends NativeEventEmitter { * See https://facebook.github.io/react-native/docs/linking.html#opensettings */ openSettings(): Promise { + if (Platform.OS === 'ios') { + return NativeLinking.openURL('app-settings:'); + } return NativeLinking.openSettings(); }