Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6211

How to use react-native-permissions

$
0
0

What i want to do I want to issue an alert with react native and instruct the other party to allow location information Bluetooth,

Problem I decided to use the article below. However, looking at the examples, I can't figure out how to use them.

https://github.com/react-native-community/react-native-permissions

Q

How can I use raect-native-permission to alert me of what I want to use?

How do you use the status and settings below?

import {requestNotifications} from 'react-native-permissions';

requestNotifications(['alert', 'sound']).then(({status, settings}) => {
  // …
}

Viewing all articles
Browse latest Browse all 6211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>