{"repo":"kingstinct/react-native-device-activity","free":true,"listed":false,"github":"https://github.com/kingstinct/react-native-device-activity","clone":"git clone https://github.com/kingstinct/react-native-device-activity.git","description":"Provides direct access to Apples Screen Time, Device Activity and Shielding APIs","language":"Swift","stars":175,"topics":["expo","ios","react-native","screentime","swift","swiftui"],"license":"MIT","category":"mobile-apps","readme_excerpt":"react-native-device-activity React Native wrapper for Apple's Screen Time, Device Activity, and Family Controls APIs. ⚠️ Important : These APIs require special approval and entitlements from Apple. Request this approval as early as possible in your development process. Table of Contents - Apple's Screen Time APIs Explained - FamilyControl API - ShieldConfiguration API - ShieldAction API - ActivityMonitor API - Installation in managed Expo projects - Some Notes - Data model - Installation in bare React Native projects - Family Controls (distribution) entitlement requires approval from Apple - Basic Example: Event Tracking Approach - Select Apps to track - Time tracking - Block the shield - Web Content Filter Policy - Alternative Example: Blocking Apps for a Time Slot - Key Concepts Explained - API Reference - Components - Hooks - Functions - Contributing - Weird behaviors ⚠️ - Troubleshooting 📱 Apple's Screen Time APIs Explained (See WWDC21 for official details.) Note: Depending on your use case, you might not need all the APIs hence not all the new bundle identifier and capabilities are required. Below is a quick overview of the APIs available. FamilyControl API The FamilyControl API allows your app to access Screen Time data and manage restrictions on apps and websites. What it does : Provides access to selection and monitoring of app/website usage Example : Selecting which apps (e.g., Instagram, TikTok) to monitor or block ShieldConfiguration API Defines the visual appeara","default_branch":null,"files":null,"tree":[],"storefront":"/r/kingstinct","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kingstinct/react-native-device-activity/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}