Skip to content

Commit

Permalink
Merge pull request #22 from expo/@brent/linking-open-settings
Browse files Browse the repository at this point in the history
Polyfill for Linking.openSettings on iOS
  • Loading branch information
brentvatne authored Apr 7, 2020
2 parents 9ccbad5 + 4214652 commit df985c5
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 df985c5

Please sign in to comment.