react-native/flow-typed/npm/@react-native-community
Alex Hunt 196b3f9ef9 Improve start command interactive behaviour (#39544)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/39544

Misc improvements to `npx react-native start` interactive behaviour:

- Attaches key handlers on Metro `initialize_done` event — printing key command info earlier (once the server starts listening to bundle requests).
- Shutdown behaviour:
    - Awaits closing of Metro's HTTP server.
    - Pauses key listener while awaiting shutdown (dependency on `cli-tools` `addInteractionListener` dropped).
    - Now observes `ctrl+d` (`ctrl+z` pause behaviour removed).
- Updates reload handler message to 'Reloading connected app(s)...' (since ).
- Adds newline below key commands printout (even spacing).

Changelog: [Internal]

Reviewed By: NickGerleman

Differential Revision: D49422206

fbshipit-source-id: 8963b22ddb182df7a1116906fc63cc65bfe982fc
2023-09-20 03:47:13 -07:00
..
cli-server-api_v12.x.x.js Move metro-inspector-proxy into dev-middleware (#39045) 2023-08-18 01:38:10 -07:00
cli-tools_v12.x.x.js Improve start command interactive behaviour (#39544) 2023-09-20 03:47:13 -07:00
cli-types_v12.x.x.js Convert community-cli-plugin to Flow strict (#38961) 2023-08-15 02:33:22 -07:00