Drawings, gestures, and animations workshop – App.js Conference 2022

Drawings, gestures, and animations workshop – App.js Conference 2022

Hosted by

Setup

During this workshop we will work with an Expo / React Native app published in this repo. In order to make setup more seamless we have prepared a so-called Expo’s development client builds that include all the native code for all the dependencies that are used as a part of the workshop.

You should be able to use iOS simulator, Android emulator, or any modern Andorid or iOS phone to perform the exercises, however, we recommend that you stick to one choice to avoid additional setup steps you may need to do in the future. If you choose to work with an emulator (either iOS or Android) make sure that you have that emulator installed and configured as setting it up is outside of this setup scope.

Before you begin

use the below command to install Expo CLI:

npm install -g expo-cli

Or make sure it is up to date if you have it installed already:

expo --version

Preparing device or simulator

Depending on what device or simulator you choose to use, you’ll need to install custom made Development Client application in your environment. Follow one of the sections below for detailed instructions.

For iOS simulator

  1. Download Development Client build from this link
  2. Extract appjsworkshop.app file from the downloaded archive
  3. Launch your iOS simulator
  4. Drag and drop the .app file onto the simulator

For iOS device

  1. Scan the QR code below with your iOS phone:

  1. Click “install” button on the website that the code opens, and confirm with “install” button on the dialog that pops up after that
  2. After app installation is completed navigate to “Settings” > “General” > “VPN & Device Management” section
  3. Tap “650 INDUSTRIES INC.” record in the “ENTERPRISE APP” section
  4. Tap “Trust 650 INDUSTRIES INC.” on the following page and confirm the selection when prompted
  5. Make sure you can now launch “appjs-workshop” app installed on your phone

For Android emulator

  1. Download Development Client build from this link
  2. Launch Android emulator on your computer
  3. Drag and drop the downloaded .apk file onto emulator

For Android device

  1. Scan this QR code on your device:

  1. Tap “install” button on the website that opens after scannig the code

Running the app

After completing Development Client installation step, you now should be able to clone this repo and launch the app. Follow the below steps from the terminal:

  1. Clone the repo:
git clone git@github.com:software-mansion-labs/drawings-and-animations-workshop.git && cd drawings-and-animations-workshop
  1. Install project dependencies (run the below command from the project main directory):
yarn
  1. Launch the app with Expo CLI:
expo start --dev-client
  1. The above step will print instructions on how to launch the app on phone or simulator. For iOS siulator you’ll need to press “i”, for Android press “a”, and if you’d like to run the app on a physical device you’ll need to scan the QR code that will be displayed on the command line output.

Next step

Go to: Animated Reactions

GitHub

View Github