Skip to content

Instantly share code, notes, and snippets.

@admataz
Created June 16, 2020 22:44
Show Gist options
  • Save admataz/49f9e540f385caa117519465ab1cf741 to your computer and use it in GitHub Desktop.
Save admataz/49f9e540f385caa117519465ab1cf741 to your computer and use it in GitHub Desktop.
YCM React Native learning notes no.3 - 16 June 2020

YCM React Learning session no.3

16 Jun 2020

Here’s a quick recap of what we covered and some links and resources going forward.

Setting up the development environment

  • We revisited the set up to make sure we all could run build the apps and view them on our phones with Expo and React Native.
  • The guide at Expo — Learn how is a good place to go for step by step instructions
  • Also, we needed to be sure to have the Expo client installed on our phone.

The sample Tensorflow Image classification app

  • We downloaded the example experiment from admataz/react-native-image-classifier (either check out via git or download the zip)

  • From the terminal command line, in the project folder, we ran npm install to install all the dependencies. Once that was done, we ran expo start which opened the Expo environment in a web browser - with the QR code we could use to build and launch the app on our phone.

I think this was a success - we could run the realtime image classifier app.

Examining the code.

We changed the Camera from back to front - and this auto-updated the app running on the phone.

We went through some of the basics of JavaScript and React apps:

  • dependencies defined in package.json
  • import statements at the top of files to use modules
  • The main App.js component - which contains the TFCamera component where all the Tensorflow relevant logic is contained.

React and JavaScript concepts covered

I would have liked to have been able to have a more meaningful live code example to demonstrate these basics for you - but here are the topics we covered, and what I think are good links to the relevant documentation to help explain

More useful resources

Review the previous notes and resources from these sessions:

Check these tutorials and docs - they will be useful for your development:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment