我是RN和世博的新手。我创建了新的项目expo init test,然后是cd test,然后是npm install --save react-native-ble-plx,然后由npm start启动了世博会。
在我的代码中,我添加了以下几行:
import { BleManager } from 'react-native-ble-plx';
export const manager = new BleManager();
manager.onStateChange(onStateChange);当我试图从ios模拟器/android或web运行它时,我会出错:
Native module cannot be null.那么,是否有可能在世博会中运行本机模块(如react-native-ble-plx )?如果是,我做错了什么?
https://stackoverflow.com/questions/68702618
复制相似问题