We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c86100a commit 079507cCopy full SHA for 079507c
components/CellularDemo.tsx
@@ -7,6 +7,8 @@ const CellularDemo = () => {
7
const { cellularInfo, refreshCellularInfo, requestPermissionsAsync } =
8
useCeullar();
9
10
+ const [status, requestPermission] = Cellular.usePermissions();
11
+
12
const handleRequestPermissions = async () => {
13
try {
14
await requestPermissionsAsync();
@@ -43,6 +45,7 @@ const CellularDemo = () => {
43
45
Permission Status:{" "}
44
46
{cellularInfo.permission ? cellularInfo.permission.status : "N/A"}
47
</Text>
48
49
<View style={styles.buttonContainer}>
50
<Button
51
title="Refresh Info"
0 commit comments