Last active
September 26, 2022 14:39
-
-
Save usrbowe/cf0fe2bf4e73923059d06bb442d054f9 to your computer and use it in GitHub Desktop.
React Native Profiler <= RN 0.59
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// React Native version <= 0.59 | |
{ | |
"presets": ["module:metro-react-native-babel-preset"], | |
"plugins": [ | |
["module-resolver", { | |
"root": ["./"], | |
"alias": { | |
"ReactNativeRenderer-prod": "./node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-profiling", | |
"scheduler/tracing": "scheduler/tracing-profiling" | |
} | |
}] | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// React Native version >= 0.60 | |
{ | |
"presets": ["module:metro-react-native-babel-preset"], | |
"plugins": [ | |
["module-resolver", { | |
"root": ["./"], | |
"alias": { | |
"ReactNativeRenderer-prod": "./node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-profiling", | |
"scheduler/tracing": "scheduler/tracing-profiling" | |
} | |
}] | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For react native version >= 0.61, you can use this in your
babel.config.js
: