Skip to content

Instantly share code, notes, and snippets.

@oflarcade
Created October 30, 2019 09:53
Show Gist options
  • Save oflarcade/38dce622ed6e86482ec166b4b07cdf3e to your computer and use it in GitHub Desktop.
Save oflarcade/38dce622ed6e86482ec166b4b07cdf3e to your computer and use it in GitHub Desktop.
...
startScan() {
if (!this.state.scanning) {
//this.setState({peripherals: new Map()});
BleManager.scan([], 3, true).then(results => {
console.log('Scanning...');
this.setState({scanning: true});
});
}
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment