Shall i use Private API to open Settings in iOS?

In my React Native application, I want to open the wifi settings from my app.

I used Linking.openURL("App-Prefs:root=WIFI");. It's redirecting to main settings page. That's fine.

But most of the developers reporting that their app got rejected by Apple store due to using "App-Prefs" which is private APIs. Is that true? How other apps are redirecting to settings page? How can I achieve this? Please advice.
Looking to submit app as well and worried that Linking.openURL('App-Prefs:') will flag and cause a rejection. If there is another way, I would love to know as well.

What is the status of your app submission? Has it been approved, or is it being rejected?

Shall i use Private API to open Settings in iOS?
 
 
Q