Rocket.Chat.ReactNative/app/lib/methods/helpers/openAppSettings.ts

12 lines
217 B
TypeScript
Raw Normal View History

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