Skip to content

Instantly share code, notes, and snippets.

View App.js
export class App extends Component {
constructor(props) {
super(props)
this.BLEManager = new BleManager({
restoreStateIdentifier: 'bleManagerRestoredState',
restoreStateFunction: bleRestoredState => this.handleBLEManagerStateRestoration(bleRestoredState)
})
this.BLEManager.setLogLevel(LogLevel.Verbose)
this.BLEManager.onDeviceDisconnected(() => console.log('hey, device disconnected'))
this.props.actions.saveBLEManager(this.BLEManager)