Commit aab3ad65 authored by Mehdi Achour's avatar Mehdi Achour

docs: mention that getPhoneNumber() may return undefined

Closes #327
parent 5daad489
...@@ -569,6 +569,10 @@ const phoneNumber = DeviceInfo.getPhoneNumber(); ...@@ -569,6 +569,10 @@ const phoneNumber = DeviceInfo.getPhoneNumber();
* [android.permission.READ_PHONE_STATE](https://developer.android.com/reference/android/Manifest.permission.html#READ_PHONE_STATE) * [android.permission.READ_PHONE_STATE](https://developer.android.com/reference/android/Manifest.permission.html#READ_PHONE_STATE)
**Notes**
> This can return `undefined` in certain cases and should not be relied on. [SO entry on the subject](https://stackoverflow.com/questions/2480288/programmatically-obtain-the-phone-number-of-the-android-phone#answer-2480307).
--- ---
### getReadableVersion() ### getReadableVersion()
......
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