用于 create-react-native-app 的捆绑分析器

Sta*_*rov 0 react-native create-react-native-app

如何分析 react-native 包的大小?应用程序是使用 create-react-native-app 创建的。

zar*_*ode 5

您可以将此库react-native-bundle-visualizer 添加到您的项目中:

yarn add --dev react-native-bundle-visualizer
Run Code Online (Sandbox Code Playgroud)

然后

yarn run react-native-bundle-visualizer
Run Code Online (Sandbox Code Playgroud)

应该显示 react-native 包的可视化。