Skip to content

Commit

Permalink
Update "Open Debugger" to print extended Flipper guidance
Browse files Browse the repository at this point in the history
Summary:
Supports the removal of Flipper from the template in 0.74, paried with additional blog post messaging: https://reactnative.dev/blog/2024/04/22/release-0.74#removal-of-flipper-react-native-plugin.

Changelog:
[General][Changed] - Update "Open Debugger" action to print extended Flipper guidance

Reviewed By: cipolleschi

Differential Revision: D56705236

fbshipit-source-id: d7e869625262ebb02bc2454c924f832cccfbcd31
  • Loading branch information
huntie committed Apr 30, 2024
1 parent 680d89b commit 261a587
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ export default function deprecated_openFlipperMiddleware({
'Flipper to be installed on your system to handle the ' +
"'flipper://' URL scheme.",
);
logger?.info(
'In React Native 0.74, Flipper is no longer included for new React ' +
'Native projects. The Flipper React Native plugin is also ' +
'unsupported. You can continue to use Flipper to debug ' +
"your app's JavaScript code, however we recommend switching to " +
'a modern alternative.\nSee ' +
'https://reactnative.dev/docs/debugging#opening-the-debugger.',
);
await open(FLIPPER_SELF_CONNECT_URL);
res.end();
} catch (e) {
Expand Down

0 comments on commit 261a587

Please sign in to comment.