yarn start
- optional (--clear-cache)
The motivation of the project is to serve as a simple to run, simple to edit clean React Native project for Zapp Plugins.
This repository is a template for anybody to clone and start building a RN Plugin for Zapp.
This template repository contains the following:
- React native app based on RN 0.59 with 1 screen containing a headline and a printout of the initial props
- Sample plugin manifest
- This guide
In order to run this project simply:
- run either
npm i
oryarn
- run
react-native start
This repository contains basic build scripts that will output to the following structure:
<project_folder>/build/android
<project_folder>/build/ios
In order to build run either npm run-script build
or yarn build
.
For the sake of simplicity and quick testing - Zapp already contains an app with this plugin built in. With the following steps you could run your local version of the plugin within a full fledged Zapp App enviornment.
- Download the latest dev project for zip iOS from: https://zapp.applicaster.com/app_families/1554
- Open the workspace file from the unzipped directory
- Choose the simulator as the target. Run the app and stop it once it launched.
- Go to device settings app -> Zapp React Native Starter App
- Under React Native Bundle -> Turn off
Allow Caching
- Change React Native server type to
Local
- Run the app
- Click on the side menu on the top left (White button - might be hard to see)
- Select
RN Starter
- Click
Cmd + d
on the simulator to pop up the debug menu
- If you have access to Zapp - please use the following app family: https://zapp.applicaster.com/app_families/1554 and download the latest iOS build or alternatively download the compiled version: https://rink.hockeyapp.net/apps/e96cb5f66bb34ad99e0d10bdf2637ce0
- After the app is installed on the device - launch it and then kill it from background.
- Go to device settings app -> Zapp React Native Starter App
- Under React Native Bundle -> Turn off
Allow Caching
- On device -> Change server type to
Custom
and inCustom
field change the IP to your computer's IP running the RN project. - Run the app
- Click on the side menu on the top left (White button - might be hard to see)
- Select
RN Starter
- Shake the phone if on physical device to pop up the debug menu