facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
118.91k stars 24.3k forks source link

after upgrading to version 0.76.0, the application began to weigh 2 times more #47222

Open valery-lavrik opened 13 hours ago

valery-lavrik commented 13 hours ago

Description

after updating to 0.76.0, the application began to weigh 2 times more. since version 0.74.0, the weight of the application was 39 mb. updated to 0.76.0 - the size of the application has become 79mb

Steps to reproduce

./gradlew clean && ./gradlew assembleRelease

React Native Version

0.76.0

Affected Platforms

Runtime - Android

Output of npx react-native info

$ npx react-native info
info Fetching system and libraries information...
System:
  OS: Windows 11 10.0.22631
  CPU: (16) x64 13th Gen Intel(R) Core(TM) i7-13620H
  Memory: 3.90 GB / 15.71 GB
Binaries:
  Node:
    version: 20.14.0
    path: C:\Program Files\nodejs\node.EXE
  Yarn:
    version: 1.22.19
    path: C:\Program Files (x86)\Yarn\bin\yarn.CMD
  npm:
    version: 10.7.0
    path: C:\Program Files\nodejs\npm.CMD
  Watchman: Not Found
SDKs:
  Android SDK: Not Found
  Windows SDK: Not Found
IDEs:
  Android Studio: AI-241.15989.150.2411.11948838
  Visual Studio: Not Found
Languages:
  Java:
    version: 17.0.11
    path: /c/Program Files/Microsoft/jdk-17.0.11.9-hotspot/bin/javac
  Ruby: Not Found
npmPackages:
  "@react-native-community/cli": Not Found
  react: Not Found
  react-native: Not Found
  react-native-windows: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

Stacktrace or Logs

Package.jso:

{
    "name": "my_app",
    "version": "2.5.19",
    "private": true,
    "scripts": {
        "android": "react-native run-android --active-arch-only",
        "ios": "react-native run-ios",
        "lint": "eslint .",
        "start": "react-native start",
        "test": "jest"
    },
    "dependencies": {
        "@react-native-async-storage/async-storage": "^2.0.0",
        "@react-native-community/netinfo": "^11.4.1",
        "@react-native-community/slider": "^4.5.5",
        "@react-native-firebase/analytics": "^21.2.0",
        "@react-native-firebase/app": "^21.2.0",
        "@react-native-firebase/crashlytics": "^21.2.0",
        "@react-native-firebase/messaging": "^21.2.0",
        "@react-native-firebase/storage": "^21.2.0",
        "@react-native-masked-view/masked-view": "^0.3.1",
        "@react-navigation/drawer": "^6.7.2",
        "@react-navigation/native": "^6.1.18",
        "@react-navigation/native-stack": "^6.11.0",
        "axios": "^1.7.7",
        "manage-external-storage": "^0.1.3",
        "moment": "^2.30.1",
        "qs": "^6.13.0",
        "react": "18.3.1",
        "react-native": "0.76.0",
        "react-native-blob-util": "^0.19.11",
        "react-native-document-picker": "^9.3.1",
        "react-native-gesture-handler": "^2.20.2",
        "react-native-photo-manipulator": "^1.8.1",
        "react-native-reanimated": "^3.16.1",
        "react-native-safe-area-context": "^4.11.1",
        "react-native-screens": "^3.35.0",
        "react-native-system-navigation-bar": "^2.6.4",
        "react-native-vector-icons": "^10.2.0",
        "react-native-webview": "^13.12.3",
        "yandex-mobile-ads": "^0.1.1"
    },
    "devDependencies": {
        "@babel/core": "^7.26.0",
        "@babel/preset-env": "^7.26.0",
        "@babel/runtime": "^7.26.0",
        "@react-native-community/cli": "15.0.0",
        "@react-native-community/cli-platform-android": "15.0.0",
        "@react-native-community/cli-platform-ios": "15.0.0",
        "@react-native/babel-preset": "0.76.0",
        "@react-native/eslint-config": "0.76.0",
        "@react-native/metro-config": "0.76.0",
        "@react-native/typescript-config": "0.76.0",
        "@tsconfig/react-native": "^3.0.5",
        "@types/jest": "^29.5.14",
        "@types/react": "^18.3.12",
        "@types/react-test-renderer": "^18.3.0",
        "babel-jest": "^29.7.0",
        "eslint": "^9.13.0",
        "jest": "^29.7.0",
        "prettier": "3.3.3",
        "react-test-renderer": "18.3.1",
        "typescript": "5.6.3"
    },
    "engines": {
        "node": ">=18"
    }
}

Reproducer

https://github.com/facebook/react-native

Screenshots and Videos

No response

react-native-bot commented 13 hours ago
:warning: Missing Reproducible Example
:information_source: We could not detect a reproducible example in your issue report. Please provide either:
  • If your bug is UI related: a Snack
  • If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.
react-native-bot commented 13 hours ago
:warning: Missing Reproducible Example
:information_source: We could not detect a reproducible example in your issue report. Please provide either:
migueldaipre commented 9 hours ago

Hey @valery-lavrik, can you share a reproducer with minimal dependencies?

The issue here could be your project's dependencies.