@moneylion/react-native-offer-carousel
v1.8.4
Published
React Native components for the Engine by MoneyLion Mobile SDK
Readme
react-native-offer-carousel
Description
This SDK involves a horizontal-scrolling offers carousel section. The carousel consists of offer cards of various types and categories.
Setup Guide
What you need:
- Install
Node.json your machine - Once Node.js is installed, install Yarn with
npm - Twingate Access to MoneyLion offers
- You should be able to see this on your Twingate, ensure that you are connected to the United States network
- Clone this repo on your machine
- Install Expo Go on your physical test device (only needed for running on real device)
Running on simulator (iOS/Android)
Steps to run:
- Obtain the
.envfile that contains private tokens from any @marketplace-platform-mobile team members. - In the engine-mobile-sdk repo folder, open your terminal.
- Navigate to the offer-carousel folder, then the example folder.
- Use this command
cd offer-carousel/example
- Use this command
- Run
yarn installto install the packages. - Run
yarn start --reset-cacheto start the metro bundler. - Press
ito run the app on iOS simulator, pressafor Android emulator. - The app should be up and running on your simulator/emulator.
Demo
https://github.com/user-attachments/assets/17403661-36b0-4043-849f-0a77bc907a5d
Running on real device
- In the engine-mobile-sdk repo folder, open your terminal.
- Navigate to the offer-carousel folder, then the example folder.
- Use this command
cd offer-carousel/example
- Use this command
- Run
yarn installto install the packages. - Run
yarn expo startif your machine and test device are on the same network. Else, runyarn expo start --tunnelif your test device is on a different network than your development machine. (Important: Ensure that no otheryarn startinstance is running from the same folder) - Scan the QR code shown in the terminal with Expo Go (Android) or the Camera app (iOS), the app should start running on your test device.
