Expo is a platform for rapidly and easily developing React Native apps, and they have added experimental support for Bluetooth! Here's a step-by-step guide to setting up and building a functioning Bluetooth app for iOS.

  1. Install Expo

  2. Install XCode

  3. Initialize a new Expo project

  4. Add dependencies: expo add react-native-ble-plx @config-plugins/react-native-ble-plx expo-dev-client

  5. Add @config-plugins/react-native-ble-plx to a plugins array in your app.json:

    {
      "expo": {
        "name": "react-native-bluetooth-example",
    		"plugins":[
    			"@config-plugins/react-native-ble-plx"
    		],
    	...
    }
    
  6. Setup the core code from https://github.com/t3db0t/react-native-bluetooth-example

  7. Test on physical device (BLE doesn't exist on simulators)

  8. Open the app in Expo Go

  9. If necessary: Setup XCode and provisioning

Powered by Fruition