アプリからアプリの設定画面を開くには【React Native】

アプリの設定画面を開くにはLinking.openSettings()が使えます。

import { View, Button, Linking } from 'react-native';

export default function App() {
  return (
    <View style={{flex:1, justifyContent:'center', alignItems:'center'}}>
      <Button 
        onPress={Linking.openSettings}
        title='open settings'
      />
    </View>
  );
}

ドキュメント

Linking · React Native
Linking gives you a general interface to interact with both incoming and outgoing app links.

コメント