Skip to content

Commit df985c5

Browse files
authored
Merge pull request #22 from expo/@brent/linking-open-settings
Polyfill for Linking.openSettings on iOS
2 parents 9ccbad5 + 4214652 commit df985c5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Libraries/Linking/Linking.js

+3
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ class Linking extends NativeEventEmitter {
7474
* See https://facebook.github.io/react-native/docs/linking.html#opensettings
7575
*/
7676
openSettings(): Promise<any> {
77+
if (Platform.OS === 'ios') {
78+
return NativeLinking.openURL('app-settings:');
79+
}
7780
return NativeLinking.openSettings();
7881
}
7982

0 commit comments

Comments
 (0)