This app was built as an educative tool for working with the expo-in-app-purchases
package and Expo Application
Services (EAS). I created 2 videos to go along with this app:
- Implementing In-App Purchases in Expo & React Native (9:03)
- Using Expo Application Services (EAS) to Develop your Expo App (coming soon!)
Absurd Anecdotes! is built with Expo and React Native, and uses Typescript for a type-safe codebase.
Here's a condensed list of important packages used by the app:
expo-in-app-purchases
— handles in-app purchases@react-native-async-storage/async-storage
— stores persistent data to the user's device@react-navigation/native
— built-in native navigationreact-native-paper
— stylish, customizable component library
- Clone this GitHub repo.
git clone https://github.com/chroline/absurd-anecdotes.git
- Install the necessary packages.
yarn install # or npm install
- Install the necessary CocoaPod Pods.
npx pod-install
- Make sure you have the Expo CLI installed.
Now your app should be ready to run!
There are a few different methods you can use to test-run this app.
Expo Go
You can run this app in Expo Go by running:
expo start
Note that in Expo Go, in-app purchases won't work.
Local build
The most straight-forward way to run your app on a device is with the expo run
command.
Simply run:
expo run:ios -d
# or
expo run:android -d
to run your app on a device.
Internal distribution
With EAS Build, you can run your app on your device without Expo Go, giving you full access to native code. To do so,
first make sure you have the EAS CLI installed. Then,
log into your Expo user account with eas login
.
If you're on iOS, you'll have to register your device for EAS with eas device:create
. Read the QR code with your
phone's camera and install the provisioning profile.
To build the app for internal distribution, run:
eas build -p ios --profile development
# or
eas build -p android --profile development
When the build is completed, scan the QR Code to install "Absurd Anecdotes!"