Summary: Bumps [react-native](https://github.com/facebook/react-native) from 0.67.4 to 0.68.2. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/facebook/react-native/releases">react-native's releases</a>.</em></p> <blockquote> <h2>0.68.1</h2> <h3>Changed</h3> <h4>Android specific</h4> <ul> <li>Bump React Native Gradle plugin to 0.0.6 (<a href="9573d7b84d">9573d7b84d</a> by <a href="https://github.com/cortinico"><code>@cortinico</code></a>)</li> <li>Don't require yarn for codegen tasks (<a href="d5da70e17e">d5da70e17e</a> by <a href="https://github.com/danilobuerger"><code>@danilobuerger</code></a>)</li> </ul> <h3>Fixed</h3> <ul> <li>Fix dynamic_cast (RTTI) by adding key function to ShadowNodeWrapper and related classes (<a href="58a2eb7f37">58a2eb7f37</a> by <a href="https://github.com/kmagiera"><code>@kmagiera</code></a>)</li> <li>Pin use-subscription to < 1.6.0 (<a href="5534634892">5534634892</a> by <a href="https://github.com/danilobuerger"><code>@danilobuerger</code></a>)</li> </ul> <h4>Android specific</h4> <ul> <li>Use NDK 23 only for Windows users. (<a href="e48a580080">e48a580080</a> by <a href="https://github.com/cortinico"><code>@cortinico</code></a>)</li> <li>Improve support for Android users on M1 machine (<a href="4befd2a29c">4befd2a29c</a> by <a href="https://github.com/cortinico"><code>@cortinico</code></a>)</li> <li>Template: Specify abiFilters if enableSeparateBuildPerCPUArchitecture is not set. (<a href="5dff920177">5dff920177</a> by <a href="https://github.com/cortinico"><code>@cortinico</code></a>)</li> <li>Fix for building new architecture sources on Windows (<a href="5a8033df98">5a8033df98</a> by <a href="https://github.com/mganandraj"><code>@mganandraj</code></a>)</li> </ul> <hr /> <p>You can participate in the conversation on the status of this release at this <a href="https://github.com/reactwg/react-native-releases/discussions/20">discussion</a></p> <hr /> <p>To help you upgrade to this version, you can use the <a href="https://react-native-community.github.io/upgrade-helper/">upgrade helper</a> ⚛️</p> <hr /> <p>You can find the whole changelog history in the <a href="https://github.com/facebook/react-native/blob/main/CHANGELOG.md">changelog.md file</a>.</p> <h2>0.68.0</h2> <p>0.68 stable is out!</p> <p>This release includes <strong>614 commits</strong> by <strong>68 contributors</strong>! Thank you to all our contributors new and old! You can find the <a href="https://github.com/facebook/react-native/blob/main/CHANGELOG.md#v0680">full changelog here</a>.</p> <ul> <li>See the highlights of the release in our <a href="https://reactnative.dev/blog/2022/03/30/version-068">release blog post</a>.</li> <li>You can participate in the conversation on the status of this release at <a href="https://github.com/reactwg/react-native-releases/discussions/19">this issue</a>.</li> <li>You can upgrade to this version using the <a href="https://react-native-community.github.io/upgrade-helper/">upgrade helper webtool</a> ⚛️</li> </ul> <h2>0.68.0-rc.4</h2> <p>Includes fixes to Flipper setup on iOS.</p> <hr /> <p>To test it, run:</p> <pre><code>npx react-native init RN068RC4 --version 0.68.0-rc.4 </code></pre> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/facebook/react-native/blob/main/CHANGELOG.md">react-native's changelog</a>.</em></p> <blockquote> <h1>Changelog</h1> <h2>v0.68.1</h2> <h3>Changed</h3> <h4>Android specific</h4> <ul> <li>Bump React Native Gradle plugin to 0.0.6 (<a href="9573d7b84d">9573d7b84d</a> by <a href="https://github.com/cortinico"><code>@cortinico</code></a>)</li> <li>Don't require yarn for codegen tasks (<a href="d5da70e17e">d5da70e17e</a> by <a href="https://github.com/danilobuerger"><code>@danilobuerger</code></a>)</li> </ul> <h3>Fixed</h3> <ul> <li>Fix dynamic_cast (RTTI) by adding key function to ShadowNodeWrapper and related classes (<a href="58a2eb7f37">58a2eb7f37</a> by <a href="https://github.com/kmagiera"><code>@kmagiera</code></a>)</li> <li>Pin use-subscription to < 1.6.0 (<a href="5534634892">5534634892</a> by <a href="https://github.com/danilobuerger"><code>@danilobuerger</code></a>)</li> </ul> <h4>Android specific</h4> <ul> <li>Use NDK 23 only for Windows users. (<a href="e48a580080">e48a580080</a> by <a href="https://github.com/cortinico"><code>@cortinico</code></a>)</li> <li>Improve support for Android users on M1 machine (<a href="4befd2a29c">4befd2a29c</a> by <a href="https://github.com/cortinico"><code>@cortinico</code></a>)</li> <li>Template: Specify abiFilters if enableSeparateBuildPerCPUArchitecture is not set. (<a href="5dff920177">5dff920177</a> by <a href="https://github.com/cortinico"><code>@cortinico</code></a>)</li> <li>Fix for building new architecture sources on Windows (<a href="5a8033df98">5a8033df98</a> by <a href="https://github.com/mganandraj"><code>@mganandraj</code></a>)</li> </ul> <h2>v0.68.0</h2> <h3>Breaking Changes</h3> <ul> <li>CI moved to Node 16. (<a href="f1488db109">f1488db109</a> by <a href="https://github.com/kelset"><code>@kelset</code></a>). This change enforces Node >= 14 for React Native builds.</li> <li>Bump Android Gradle Plugin to 7.0.1. (<a href="272cfe5d13">272cfe5d13</a> by <a href="https://github.com/dulmandakh"><code>@dulmandakh</code></a>) This version of Android Gradle plugin enforces JDK 11 for Android builds. Do not upgrade to AGP 7.1 as it is not supported by this version of react-native.</li> <li>Removed <code>fallbackResource</code> from <code>RCTBundleURLProvider</code> API (<a href="0912ee179c">0912ee179c</a>) by <a href="https://github.com/philIip"><code>@philIip</code></a></li> </ul> <h3>New Architecture</h3> <p><em>If you are interested in enabling the new architecture, please refer to <a href="https://reactnative.dev/docs/next/new-architecture-intro">the dedicated documentation</a>.</em></p> <ul> <li>Do not include Facebook license on users codegen'd code (<a href="450967938a">450967938a</a> by <a href="https://github.com/cortinico"><code>@cortinico</code></a>)</li> </ul> <h4>Android specific</h4> <ul> <li>Setup a <code>newArchEnabled</code> property to Opt-in the New Architecture in the template (<a href="8d652fba4c">8d652fba4c</a> by <a href="https://github.com/cortinico"><code>@cortinico</code></a>)</li> </ul> <h4>iOS specific</h4> <ul> <li>Add fabric option to the default app template. (<a href="2e9a376c84">2e9a376c84</a> by <a href="https://github.com/sota000"><code>@sota000</code></a>)</li> <li>Add turbo module support in the default app template. (<a href="8ec0e6919c">8ec0e6919c</a> by <a href="https://github.com/sota000"><code>@sota000</code></a>)</li> <li>Rename the new architecture flag to RCT_NEW_ARCH_ENABLED. (<a href="c0c5439959">c0c5439959e</a> by <a href="https://github.com/sota000"><code>@sota000</code></a>)</li> </ul> <h3>Added</h3> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="72e1eda073"><code>72e1eda</code></a> [0.68.2] Bump version numbers</li> <li><a href="dfda480a98"><code>dfda480</code></a> Bump used version of react-native-codegen to 0.0.17</li> <li><a href="a5ddc2e165"><code>a5ddc2e</code></a> Bump react-native-codegen to 0.0.17</li> <li><a href="62ef6f5fa1"><code>62ef6f5</code></a> [Main][Windows] Working around Long paths limitation on Windows (<a href="https://github-redirect.dependabot.com/facebook/react-native/issues/33707">#33707</a>)</li> <li><a href="b5f1b26a8f"><code>b5f1b26</code></a> [0.68.1] Bump version numbers</li> <li><a href="48113b5635"><code>48113b5</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/facebook/react-native/issues/33628">#33628</a> from fortmarek/fix/yarn-lock-gradle-plugin</li> <li><a href="faaf2560cd"><code>faaf256</code></a> Update yarn.lock with the new react-native-gradle-plugin version</li> <li><a href="387ee70e72"><code>387ee70</code></a> Use NDK 23 only for Windows users. (<a href="https://github-redirect.dependabot.com/facebook/react-native/issues/33611">#33611</a>)</li> <li><a href="3fd3fe04da"><code>3fd3fe0</code></a> react-native-gradle-plugin should not depend on react-native-codegen NPM package</li> <li><a href="fdd7848454"><code>fdd7848</code></a> Replaced windowsAwareYarn with windowsAwareCommandLine for node calls (<a href="https://github-redirect.dependabot.com/facebook/react-native/issues/33530">#33530</a>)</li> <li>Additional commits viewable in <a href="https://github.com/facebook/react-native/compare/v0.67.4...v0.68.2">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/3700 Reviewed By: timur-valiev Differential Revision: D36371151 Pulled By: mweststrate fbshipit-source-id: 2f359af8c5a693e8a2244fe0c22d31bb6f889724
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.