{"repo":"demchenkoalex/react-native-nitro-store-country","free":true,"listed":false,"github":"https://github.com/demchenkoalex/react-native-nitro-store-country","clone":"git clone https://github.com/demchenkoalex/react-native-nitro-store-country.git","description":"⚡️ Lightning-fast store country detection for React Native using Nitro Modules","language":"Swift","stars":11,"topics":["android","app-store","billing","country-code","google-play","ios","nitro","nitro-modules","react-native","storekit"],"license":"MIT","category":"mobile-apps","readme_excerpt":"react-native-nitro-store-country ⚡️ Lightning-fast store country detection for React Native using Nitro Modules Get the user's App Store (iOS) or Google Play (Android) country code with a single call. Built with Nitro for maximum performance. Features - ⚡️ Lightning-fast - Built with Nitro Modules for maximum performance - 🎯 Accurate - Gets store country from StoreKit (iOS) and Google Play Billing (Android) - 💾 Fetch once - Queries store APIs once and saves the result - 🔄 Force refresh - Option to refetch when needed - 📱 System country - Access device locale country when store country is unavailable - 🍎 [iOS] Auto-fallback - Automatically uses system country for non-App Store builds (TestFlight returns \"USA\") - 🍎 [iOS] Alpha-2 codes - Converts StoreKit's alpha-3 codes to alpha-2 format - ✨ TypeScript - Full type safety out of the box - 🎨 Simple API - Just one method and one property Installation iOS Android No additional steps required. The library uses autolinking. Expo Works with Expo Development Builds. You have two options: Option 1: Using EAS (Expo Application Services) Option 2: Without EAS Note: Not compatible with Expo Go (requires native code). Usage Basic Usage Force Refresh React Hook Example API Reference getStoreCountry(force?: boolean): Promise Gets the user's store country code (ISO 3166-1 alpha-2). Parameters: - force (optional): If true , forces a fresh fetch from the store API, ignoring any previously saved result. Default: false Returns: - Promise - ","default_branch":null,"files":null,"tree":[],"storefront":"/r/demchenkoalex","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/demchenkoalex/react-native-nitro-store-country/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."}