Skip to content

Commit

Permalink
Polyfill for Linking.openSettings on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
brentvatne committed Apr 6, 2020
1 parent 9ccbad5 commit 4214652
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Libraries/Linking/Linking.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ class Linking extends NativeEventEmitter {
* See https://facebook.github.io/react-native/docs/linking.html#opensettings
*/
openSettings(): Promise<any> {
if (Platform.OS === 'ios') {
return NativeLinking.openURL('app-settings:');
}
return NativeLinking.openSettings();
}

Expand Down

0 comments on commit 4214652

Please sign in to comment.