MCPcopy Create free account
hub / github.com/c19354837/react-native-system-setting / openAppSystemSettings

Method openAppSystemSettings

SystemSetting.js:202–217  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

200 }
201
202 static async openAppSystemSettings() {
203 switch(Platform.OS) {
204 case 'ios': {
205 const settingsLink = 'app-settings:';
206 const supported = await Linking.canOpenURL(settingsLink)
207 if (supported) await Linking.openURL(settingsLink);
208 break;
209 }
210 case 'android':
211 await SystemSettingNative.openAppSystemSettings()
212 break;
213 default:
214 throw new Error('unknown platform')
215 break;
216 }
217 }
218
219 static async addBluetoothListener(callback) {
220 return await SystemSetting._addListener(false, 'bluetooth', 'EventBluetoothChange', callback)

Callers 1

App.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected