Skip to content

AndrewJBateman/ionic-react-example

Repository files navigation

⚡ Ionic React Example

  • App using the very latest Ionic 6 with React to show Yelp REST API data with locations on a map
  • Tutorial example code from Alan Montgomery, Senior React Dev with changes to code and SCSS colors.
  • Note: to open web links in a new window use: ctrl+click on link

GitHub repo size GitHub pull requests GitHub Repo stars GitHub last commit

📄 Table of contents

📚 General info

  • Yelp REST API key required
  • New Ionic 6 bottom sheet drawer modal used to show list of places, activated by an Ionfab button
  • Restaurant Finder Ionic-React UI app by Alan Montgomery used to try out new Ionic 6 bottom sheet drawer modal
  • Yelp REST API http calls made using Axios from express app Server.js

📷 Screenshots

Example screenshot

📶 Technologies

💾 Setup * Development

  • Install dependencies using npm i
  • Add Yelp API key to server.js
  • node server.js to start server
  • Run npm run start or ionic serve to open the frontend at http://localhost:8100/

💾 Setup * Build, Android Studio

  • Run ionic build to create build files
  • If you don't have it already then Install Android Studio (on Windows 10 Home in my case)
  • Connect mobile device to Android Studio via USB. To go into dev mode on Realme 5 Pro mobile phone connected via USB to Android: Go to 'About Phone'/'Version Baseband & Kernal' in phone settings then click 7 times on 'Version' and enter phone access code. Go to Settings/Additional Settings/Developer options and enable 'USB debugging'

💻 Code Examples

  • Tab1.jsx IonFab button activates IonModal that opens to display Yelp REST API search data and can be swiped to close
<IonFab vertical="bottom" horizontal="start" slot="fixed" onClick={() => setShowListModal(!showListModal)} > <IonFabButton> <IonIcon icon={list} /> </IonFabButton> </IonFab> <IonModal isOpen={showListModal} onDidDismiss={() => setShowListModal(false)} swipeToClose={true} initialBreakpoint={0.6} breakpoints={[0, 0.6, 1]} backdropBreakpoint={0.6} > <ListModal hideModal={() => setShowListModal(false)} searchTerm={searchTerm} search={setSearchTerm} records={results} /> </IonModal>

🆒 Features

📋 Status & To Do List

  • Status: Working
  • To-Do: Nothing

👏 Inspiration

📁 License

  • N/A

✉️ Contact

About

📋 Ionic 6 app using lightweight map modules to show Yelp API data

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published