Before start, check if you have the Android Studio.
git clone https://github.com/r89shi/bluetooth-ble-example.git
Warning
For some reason the pnpm does not work, so if you have some error like Register Component problably that is the reason.
Important
Before install remove the package: @config-plugins/react-native-ble-plx from the packege.json file.
I do recommend, first install all others packages using the npx expo install, after that install the @config-plugins/react-native-ble-plx using npm or yarn
npx expo install
npm install @config-plugins/react-native-ble-plx
or
yarn install @config-plugins/react-native-ble-plx
Open the Android Studio and start one Android Emulator.
Export the Android folder from the project.
npx expo prebuild
Start the project and let it running to create an auto link.
Note
Make this step only in the first initialization, after that it is not necessary.
npm start
or
yarn start
For this step connect a physical device on USB.
npm android
or
yarn android