12 lines
217 B
TypeScript
12 lines
217 B
TypeScript
|
import { Linking } from 'react-native';
|
||
|
|
||
|
import { isIOS } from './deviceInfo';
|
||
|
|
||
|
export const openAppSettings = (): void => {
|
||
|
if (isIOS) {
|
||
|
Linking.openURL('app-settings:');
|
||
|
} else {
|
||
|
Linking.openSettings();
|
||
|
}
|
||
|
};
|