Code Monkey home page Code Monkey logo

ble-react-native-app's Introduction

Learnings:

  • need to explicitly request permission for a bunch of things (bluetooth, location etc). Can't just add them to the manifest
  • apparently, may need to delay scanning until a few seconds after launch?
  • plug the phone in to laptop, way easier/more stable
  • bleManager needs to be instantiated once, ever. Dont put it in a component or hook
  • expo start and expo run:android are somehow different?
  • eas build lets you run the build on Expo's hosted service, then you get a link. It's slower though.
  • Emulators don't work. Need a real device.
  • You actually do need the npx to start commands. Otherwise there's weird version conflicts (somehow?)
  • Java/JDK 17 only
  • get the expo app on device
  • Need android dev studio
  • Need to add ANDROID_HOME to $PATH

Random commands I've run:

  • eas build:configure
  • eas build --profile development --platform android
  • npx expo start --dev-client
  • npx expo run:android
  • npx expo prebuild
  • adb uninstall "com.domain.my-app" - uninstalls the app, if you actually installed it

ble-react-native-app's People

Contributors

tomquirk avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.