expo-onside
v1.0.2
Published
Onside marketplace utilities for Expo modules
Maintainers
Readme
expo-onside
Utilities for detecting whether the app was installed from the Onside marketplace.
Usage
- JavaScript/TypeScript
import Onside, { checkOnsideMarketplaceAsync, useOnside } from 'expo-onside';
// One-off check
const isFromOnside = await checkOnsideMarketplaceAsync();
// React hook
function Example() {
const { isOnsideLoading } = useOnside();
// ...
}
// Cached snapshot (non-reactive)
const snapshot = Onside.installedFromOnside;Notes:
- iOS-only: Requires iOS 17.4+ and MarketplaceKit. Returns true only when installed from Onside marketplace.
- Android: Not supported. The JS fallback returns false and no native code is linked.
Installation
For bare React Native projects, ensure you have installed and configured the expo package.
npm install expo-onsideiOS
Run npx pod-install after installing the npm package.
Android
No additional steps required at the moment.
Contributing
Contributions are welcome! Open an issue or PR in this repository.
