Support React Native buttons

Summary: Added the Metro buttons to AppInspect

Reviewed By: cekkaewnumchai

Differential Revision: D24544760

fbshipit-source-id: 1eb6face14a7950d654c95b1a8fca31b8efed99b
This commit is contained in:
Michel Weststrate
2020-10-27 05:16:10 -07:00
committed by Facebook GitHub Bot
parent 82604020ab
commit b8f68a4026
4 changed files with 45 additions and 28 deletions

View File

@@ -73,9 +73,7 @@ export default function ScreenCaptureButtons({useSandy}: {useSandy?: boolean}) {
} else {
selectedDevice
.stopScreenCapture()
.then((path) => {
path && openFile(path);
})
.then(openFile)
.catch((e) => {
console.error('Failed to start recording', e);
message.error('Failed to start recording' + e);