@craveup/storefront-sdk. The SDK is framework-agnostic and works anywhere fetch is available — including React Native.
Prerequisites
- Node.js 18+ and a package manager
- Expo CLI (
npx expo) - A Crave API key from the Dashboard
- At least one live location in your merchant account
1. Create an Expo project
2. Install the SDK
3. Set environment variables
Create a.env file and install expo-constants to access them:
4. Create the storefront client
fetch implementation, so no polyfill is needed.
5. Display the merchant
6. Create a cart hook
7. Add-to-cart screen
8. Run on a device
i for the iOS simulator / a for the Android emulator.
API key security on mobile
Next steps
Display Menu
Fetch menus, categories, and products for a location.
Manage Cart
Add, update, and remove items with modifiers.
Fulfillment Methods
Set up delivery, table-side, and room service.
SDK Reference
Full SDK documentation with all available modules.
Slack Community
Ask questions and get help from the Crave team and community.
Discord
Join our Discord server for real-time discussions.
Email Support
Reach out to hello@craveup.com for direct support.