Summary: Bumps [metro-config](https://github.com/facebook/metro) from 0.72.3 to 0.73.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/facebook/metro/releases">metro-config's releases</a>.</em></p> <blockquote> <h2>Release v0.73.1</h2> <ul> <li><strong>[Fix]</strong>: Generate a unique name for each Watchman subscription. (3b0e78a76f4eea9f02e8b8464cf5b5e4549d6ac7)</li> </ul> <blockquote> <p>NOTE: Experimental features are not covered by semver and can change at any time.</p> </blockquote> <ul> <li><strong>[Experimental][Fix]</strong>: Normalize file paths for <code>require.context</code> on Windows (<a href="https://github-redirect.dependabot.com/facebook/metro/pull/876">facebook/metro#876</a> by <a href="https://github.com/byCedric"><code>@byCedric</code></a>)</li> </ul> <p><strong>Full Changelog:</strong> <a href="https://github.com/facebook/metro/compare/v0.73.0...v0.73.1">https://github.com/facebook/metro/compare/v0.73.0...v0.73.1</a></p> <h2>Release v0.73.0</h2> <ul> <li><strong>[Breaking]</strong> Switch default minifier from <code>uglify-es</code> to <code>terser</code>. (<a href="https://github-redirect.dependabot.com/facebook/metro/issues/871">https://github.com/facebook/flipper/issues/871</a>)</li> <li><strong>[Breaking]</strong>: Increase minimum supported Node.js version to ^14.17.0. (<a href="https://github-redirect.dependabot.com/facebook/metro/issues/872">https://github.com/facebook/flipper/issues/872</a>)</li> <li><strong>[Breaking]</strong>: Drop support for old (pre-CalVer) Watchman versions. (422055a5ccaca41edb1864ca07d4f810b3e03791)</li> <li><strong>[Feature]</strong>: Support <code>fsevents</code> watcher on Apple Silicon. (<a href="https://github-redirect.dependabot.com/facebook/metro/issues/875">https://github.com/facebook/flipper/issues/875</a>)</li> <li><strong>[Feature]</strong>: Support loading source URLs in inspector-proxy. (db19b06bdd6d2fbbe109e4f3be4b3af3489c1f1c)</li> <li><strong>[Fix]</strong>: Log warning on unexpected error during <code>metro-file-map</code> cache read. (7028b7f51074f9ceef22258a8643d0f90de2388b)</li> <li><strong>[Fix]</strong>: Remove exponentiation operator transform from <code>metro-react-native-babel-preset</code>. (c2365bb1d72a3773b31c05feab13a96afac484df)</li> <li><strong>[Fix]</strong>: Don’t check <code>watchman --version</code> if <code>useWatchman</code> is false. (76c9307ed61efa7794b30b4e585cc5941ed73e16)</li> </ul> <p><strong>Full Changelog:</strong> <a href="https://github.com/facebook/metro/compare/v0.72.3...v0.73.0">https://github.com/facebook/metro/compare/v0.72.3...v0.73.0</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="79266cc0ef"><code>79266cc</code></a> Release 0.73.1</li> <li><a href="3b0e78a76f"><code>3b0e78a</code></a> Use per-watch Watchman subscription names</li> <li><a href="4bace2a9f3"><code>4bace2a</code></a> Normalize file paths for require context on Windows (<a href="https://github-redirect.dependabot.com/facebook/metro/issues/876">https://github.com/facebook/flipper/issues/876</a>)</li> <li><a href="3ab9c00f3f"><code>3ab9c00</code></a> Fix a $FlowFixMe</li> <li><a href="1b064f2639"><code>1b064f2</code></a> Release 0.73.0</li> <li><a href="4b78430648"><code>4b78430</code></a> Introduce a platform allowlist for libraries</li> <li><a href="f0e9c731da"><code>f0e9c73</code></a> Add watch-related <code>debug</code> and <code>perfLogger</code> output to <code>metro-file-map</code></li> <li><a href="43a1ba4ca0"><code>43a1ba4</code></a> Revert D39966518: Release 0.73.0</li> <li><a href="b83ad852ed"><code>b83ad85</code></a> Release 0.73.0</li> <li><a href="db19b06bdd"><code>db19b06</code></a> Support loading source URLs in inspector-proxy</li> <li>Additional commits viewable in <a href="https://github.com/facebook/metro/compare/v0.72.3...v0.73.1">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `dependabot rebase` will rebase this PR - `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `dependabot merge` will merge this PR after your CI passes on it - `dependabot squash and merge` will squash and merge this PR after your CI passes on it - `dependabot cancel merge` will cancel a previously requested merge and block automerging - `dependabot reopen` will reopen this PR if it is closed - `dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Pull Request resolved: https://github.com/facebook/flipper/pull/4193 Reviewed By: aigoncharov Differential Revision: D40334991 Pulled By: mweststrate fbshipit-source-id: 2e069dd11263fe5c9c77b4955074a5e8ee46abe2
react-native-flipper
This package exposes JavaScript bindings to talk from React Native JavaScript directly to flipper.
This package might also be required by other Flipper plugins for React Native.
Installation
Run the following command in the root of your React Native project
yarn add react-native-flipper
Note that this package requires React Native 0.62 or higher.
Usage
How to build Flipper plugins is explained in the flipper documentation: Creating a Flipper plugin. Building a Flipper plugin involves building a plugin for the Desktop app, and a plugin that runs on a Device (Native Android, Native IOS or React Native). This package is only needed for the plugin that runs on the mobile device, in React Native, and wants to use the JavaScript bridge.
This package exposes one method: addPlugin.
The addPlugin accepts a plugin parameter, that registers a client plugin and will fire the relevant callbacks if the corresponding desktop plugin is selected in the Flipper Desktop. The full plugin API is documented here.
Example
An example plugin can be found in FlipperTicTacToe.js.
The corresponding Desktop plugin ships by default in Flipper, so importing the above file and dropping the <FlipperTicTacToe /> component somewhere in your application should work out of the box.
The sources of the corresponding Desktop plugin can be found here.