Commit e599ce40 authored by Noah Passalacqua's avatar Noah Passalacqua

Update README

parent 0c40dcb0
......@@ -143,13 +143,14 @@ include ':app'
(Thanks to @josephan for writing the instructions)
## Device Name
## Permissions
If you want to get the device name in Android add this to your `AndroidManifest.xml` (optional):
Add the appropriate, optional permissions to your `AndroidManifest.xml`:
```xml
...
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.BLUETOOTH"/> <!-- for Device Name -->
<uses-permission android:name="android.permission.READ_PHONE_STATE"/> <!-- for Phone Number -->
```
## Release Notes
......@@ -185,6 +186,7 @@ var DeviceInfo = require('react-native-device-info');
| App is running in emulator | `isEmulator()` | true | if app is running in emulator return true |
| App is running on a tablet | `isTablet()` | true | if app is running on a tablet return true |
| PIN or fingerprint set | `isPinOrFingerprintSet()(callback)`| | Only supported in Android and iOS 9.0 and above
| Phone Number | `getPhoneNumber()` | "2348675309" or "" or null | Only supported in Android
Since the device setting for PIN/Fingerprint can be modified while the app is still open, this is available via callback instead of as a constant. To use, pass a callback function to the returned bridge function in your javascript:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment