Skip to content

Commit 079507c

Browse files
Added cellular usePermissions state var.
1 parent c86100a commit 079507c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

components/CellularDemo.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ const CellularDemo = () => {
77
const { cellularInfo, refreshCellularInfo, requestPermissionsAsync } =
88
useCeullar();
99

10+
const [status, requestPermission] = Cellular.usePermissions();
11+
1012
const handleRequestPermissions = async () => {
1113
try {
1214
await requestPermissionsAsync();
@@ -43,6 +45,7 @@ const CellularDemo = () => {
4345
Permission Status:{" "}
4446
{cellularInfo.permission ? cellularInfo.permission.status : "N/A"}
4547
</Text>
48+
4649
<View style={styles.buttonContainer}>
4750
<Button
4851
title="Refresh Info"

0 commit comments

Comments
 (0)