question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Expo can use react-native-ble-manager?

See original GitHub issue

Version

[Unhandled promise rejection: TypeError: null is not an object (evaluating 'bleManager.start')] Stack trace: http://127.0.0.1:19001/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&minify=false&hot=false:145167:21 in <unknown> node_modules\promise\setimmediate\core.js:45:7 in tryCallTwo node_modules\promise\setimmediate\core.js:200:23 in doResolve node_modules\promise\setimmediate\core.js:66:12 in Promise http://127.0.0.1:19001/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&minify=false&hot=false:145162:27 in start http://127.0.0.1:19001/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&minify=false&hot=false:144595:45 in componentDidMount node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:17029:10 in commitLifeCycles node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:20002:23 in commitLayoutEffects node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:307:15 in invokeGuardedCallbackImpl node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:531:36 in invokeGuardedCallback node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:19768:10 in commitRootImpl [native code]:null in commitRootImpl node_modules\scheduler\cjs\scheduler.development.js:643:23 in unstable_runWithPriority node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:19590:4 in commitRoot [native code]:null in commitRoot node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:18709:28 in runRootCallback [native code]:null in runRootCallback node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:5642:32 in runWithPriority$argument_1 node_modules\scheduler\cjs\scheduler.development.js:643:23 in unstable_runWithPriority node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:5638:22 in flushSyncCallbackQueueImpl node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:5627:28 in flushSyncCallbackQueue node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:18556:30 in scheduleUpdateOnFiber node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:11484:17 in dispatchAction [native code]:null in dispatchAction App.js:22:4 in loadResourcesAndDataAsync node_modules\regenerator-runtime\runtime.js:45:44 in tryCatch node_modules\regenerator-runtime\runtime.js:274:30 in invoke node_modules\regenerator-runtime\runtime.js:45:44 in tryCatch node_modules\regenerator-runtime\runtime.js:135:28 in invoke node_modules\regenerator-runtime\runtime.js:145:19 in PromiseImpl.resolve.then$argument_0 node_modules\promise\setimmediate\core.js:37:14 in tryCallOne node_modules\promise\setimmediate\core.js:123:25 in setImmediate$argument_0 node_modules\react-native\Libraries\Core\Timers\JSTimers.js:146:14 in _callTimer node_modules\react-native\Libraries\Core\Timers\JSTimers.js:194:17 in _callImmediatesPass node_modules\react-native\Libraries\Core\Timers\JSTimers.js:458:30 in callImmediates [native code]:null in callImmediates node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:407:6 in __callImmediates node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:143:6 in __guard$argument_0 node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:384:10 in __guard node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:142:17 in __guard$argument_0 [native code]:null in flushedQueue [native code]:null in invokeCallbackAndReturnFlushedQueue

Tell us which versions you are using:

  • react-native-ble-manager v7.2.0
  • react-native v37.0.1 const BleManagerModule = NativeModules.BleManager; BleManagerModule is null I have see #301 ,you say expo don’t support external Native Modules. So should i do ,expo can use this

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Cupidorcommented, Jun 10, 2021

react native

react native can use ,expo can not use toothblue module

1reaction
marcosinigagliacommented, Apr 16, 2020

I don’t get your point. You can’t use external native module in Expo.

Read more comments on GitHub >

github_iconTop Results From Across the Web

GitHub - watadarkstar/react-native-ble-manager-expo
Expo provides free hosting for the JS-only apps created by CRNA, allowing you to share your app through the Expo client app. This...
Read more >
So You Want to Build a Bluetooth App with React Native and ...
There is a library called React Native BLE Plx built by a company called Polidea . We are going to use this library...
Read more >
react-native-ble-manager - npm
A BLE module for react native.. Latest version: 8.5.0, last published: 5 days ago. Start using react-native-ble-manager in your project by ...
Read more >
Bluetooth | Voters | Expo - Canny
Create a new project: expo init · Install the packages: expo add react-native-ble-plx @config-plugins/react-native-ble-plx expo-dev-client. (can also use npm or ...
Read more >
Why do I get an error when using bluetooth in react native?
Sorry for the late reply but it seems that expo does not support Bluetooth ... You can use Expo with react-native-ble-plx.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found