как запустить отладку rect native

Не удается запустить react-devtools server

Установил зависимости

npm install -g react-devtools

Запустил проект

react-devtools

В итоге получил следующий результат:

//скрин

На странице npm https://www.npmjs.com/package/react-devtools есть раздел (Usage with React DOM) где советуют добавить Add <script src="http://localhost:8097"></script> as the very first tag in the of your page when developing:

<!doctype html>
<html lang="en">
  <head>
    <script src="http://localhost:8097"> >< /script> 

только мне не удается найти html файл внутри структуры react native cli.

Так же пробовал импортировать react-devtools If you install react-devtools as a project dependency, you may also replace the suggested above with a JavaScript import (import 'react-devtools'). It is important that this import comes before any other imports in your app (especially before react-dom).

Как решить данную проблему ?


Ответы (0 шт):