Skip to content

Instantly share code, notes, and snippets.

@jw56578
Last active March 4, 2018 00:51
Show Gist options
  • Save jw56578/db7269742d42182fd79980f7f98dd3ad to your computer and use it in GitHub Desktop.
Save jw56578/db7269742d42182fd79980f7f98dd3ad to your computer and use it in GitHub Desktop.
React Native Repl Notes
  • Building a react native app with an online ide
  • This is using the same technology that is used in the react native documentation
  • You can test simple apps on a real phone
  • Repl
  • This technology is new and is unstable but has great potential
  • Everything you type is saved on the fly

Refreshing

  • You are suppose to just hit run, but this doesnt seem to really work
  • The only way to refresh the UI is to refresh the web page to get the QR code again
  • iOS you have to shake the phone to get back to menu to scan the code or use back button on android phone
  • Then scan the QR code again

Issues

  • There is no file structure, so everything is in one file
  • You cannot use any other module. like react-native-camera
  • icon in lower left corner to download file. no better than copy and paste. You will just have to copy and past it if you ever want to run it for real
  • You can’t see the UI in the browser editor, you have to view it on your phone
  • You don’t see errors until you load it in the phone
  • The editor doesn't have the best syntax highlighting
  • Saving takes a while sometimes, make sure it says "saved"

Native features that do not work

  • Vibration

Native features that do work

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