expo-ble模块测试demo

This commit is contained in:
Yudi Xiao
2025-12-10 10:29:50 +08:00
parent 709c466792
commit 41f4080264
23 changed files with 3749 additions and 141 deletions

View File

@@ -1,6 +1,7 @@
{
"expo": {
"name": "expo-ble-app",
"owner": "bowong",
"slug": "expo-ble-app",
"version": "1.0.0",
"orientation": "portrait",
@@ -19,7 +20,14 @@
"monochromeImage": "./assets/images/android-icon-monochrome.png"
},
"edgeToEdgeEnabled": true,
"predictiveBackGestureEnabled": false
"predictiveBackGestureEnabled": false,
"permissions": [
"android.permission.BLUETOOTH",
"android.permission.BLUETOOTH_ADMIN",
"android.permission.BLUETOOTH_CONNECT",
"android.permission.RECORD_AUDIO"
],
"package": "com.shuohigh.expobleapp"
},
"web": {
"output": "static",
@@ -38,11 +46,34 @@
"backgroundColor": "#000000"
}
}
],
[
"react-native-ble-plx",
{
"isBackgroundEnabled": true,
"modes": [
"peripheral",
"central"
],
"bluetoothAlwaysPermission": "Allow $(PRODUCT_NAME) to connect to bluetooth devices"
}
],
[
"expo-image-picker",
{
"photosPermission": "The app accesses your photos to let you share them with your friends."
}
]
],
"experiments": {
"typedRoutes": true,
"reactCompiler": true
},
"extra": {
"router": {},
"eas": {
"projectId": "9adec1c5-cf51-4d78-8d4c-ca38a80334e1"
}
}
}
}