How to use the @react-native-community/cli-debugger-ui.debuggerUIMiddleware function in @react-native-community/cli-debugger-ui

To help you get started, we’ve selected a few @react-native-community/cli-debugger-ui examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github react-native-community / cli / packages / cli / src / commands / server / middleware / MiddlewareManager.ts View on Github external
constructor(options: Options) {
    this.options = options;
    this.app = connect()
      .use(getSecurityHeadersMiddleware)
      .use(loadRawBodyMiddleware)
      // @ts-ignore compression and connect types mismatch
      .use(compression())
      .use('/debugger-ui', debuggerUIMiddleware())
      .use(openStackFrameInEditorMiddleware(this.options))
      .use(openURLMiddleware)
      .use(copyToClipBoardMiddleware)
      .use(statusPageMiddleware)
      .use(systraceProfileMiddleware)
      .use(indexPageMiddleware)
      .use(errorhandler());
  }

@react-native-community/cli-debugger-ui

MIT
Latest version published 24 days ago

Package Health Score

95 / 100
Full package analysis

Popular @react-native-community/cli-debugger-ui functions

Similar packages