This application was bootstrapped using Expo, a framework for universal react native applications. This application makes use of accelerometer to provide undo/redo capabilities while typing in a text input.
https://exp.host/@mmule2/motion-based-undo-redo-app
Open this link using Expo Go application (iOS or Android) to view the application
- Ensure you have installed the latest version of Node.js (Node.js LTS release)
Only Node.js LTS releases (even-numbered) are recommended. As Node.js officially states, "Production applications should only use Active LTS or Maintenance LTS releases.
- Recommended Tools
- Expo Go App for iOS & Android
- 🤖 Android Play Store - Android Lollipop (5) and greater.
- 🍎 iOS App Store - iOS 11 and greater.
- Clone/Download this repository
- Open the project using VSCode
- Navigate to the root folder of the project, i.e. the folder containing the package.json file. This folder would have name motion-based-undo-redo-app
- When inside this folder, open command prompt or terminal. You can also use integrated terminal if you are using VSCode (VSCode shortcut:
Ctrl + `
for windows users.) - Type the below commands in terminal
- Run
npm install
to install all the dependencies - Run
npm start
to run the application in development mode - Once the bundle is ready, you can follow the link (e.g. http://localhost:19002/) displayed in the terminal or click
d
to open the Expo developer tools in browser - On the developers tool page, change the connection type to tunnel
- Open Expo Go app on your mobile device & scan the QR code displayed on the devloper tools page to run the application
- Tilt phone left to undo text
- Tilt phone right to redo text
- Shake phone to clear text