diff --git a/apps/example/screens/SimpleTab.tsx b/apps/example/screens/SimpleTab.tsx
index 82a5616..235bce4 100644
--- a/apps/example/screens/SimpleTab.tsx
+++ b/apps/example/screens/SimpleTab.tsx
@@ -37,28 +37,31 @@ export function SimpleTab() {
const [activities, refreshActivities] = useActivities();
- const onPressRequestCallback = useCallback(async () => {
- if (authorizationStatus === AuthorizationStatus.notDetermined) {
- await requestAuthorization();
- } else if (authorizationStatus === AuthorizationStatus.denied) {
- Alert.alert(
- "You didn't grant access",
- "Please go to settings and enable it",
- [
- {
- text: "Open settings",
- onPress: () => Linking.openSettings(),
- },
- {
- text: "Cancel",
- style: "cancel",
- },
- ],
- );
- } else {
- await revokeAuthorization();
- }
- }, [authorizationStatus]);
+ const onPressRequestCallback = useCallback(
+ async (forIndividualOrChild: "individual" | "child" = "individual") => {
+ if (authorizationStatus === AuthorizationStatus.notDetermined) {
+ await requestAuthorization(forIndividualOrChild);
+ } else if (authorizationStatus === AuthorizationStatus.denied) {
+ Alert.alert(
+ "You didn't grant access",
+ "Please go to settings and enable it",
+ [
+ {
+ text: "Open settings",
+ onPress: () => Linking.openSettings(),
+ },
+ {
+ text: "Cancel",
+ style: "cancel",
+ },
+ ],
+ );
+ } else {
+ await revokeAuthorization();
+ }
+ },
+ [authorizationStatus],
+ );
const [showCreateActivityPopup, setShowCreateActivityPopup] = useState(false);
@@ -108,12 +111,21 @@ export function SimpleTab() {