This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const device = await navigator.bluetooth.requestDevice({ | |
filters: [{ services: ["services"] }], | |
optionalServices: ["services"], | |
}); | |
const server = await device.gatt.connect(); | |
const service = await server.getPrimaryService("services"); | |
const characteristic = await service.getCharacteristic("characteristic"); | |
await characteristic.writeValue(payload); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ExampleCaptureModal extends Component { | |
onCapture = uri => { | |
this.refs.viewShot.capture().then(uri => { | |
console.log("do something with ", uri); | |
}); | |
} | |
render() { | |
return ( | |
<ViewShot ref="viewShot" options={{ format: "jpg", quality: 0.9 }}> | |
<Modal>Your Modal content</Modal> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.after_initialize do | |
system " cd Front-end && yarn start " | |
end |