Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React native app is not running after migrated from Version 0.71 to Version 0.76.1 #298

Open
Ajithkumar2203 opened this issue Nov 12, 2024 · 1 comment

Comments

@Ajithkumar2203
Copy link

Ajithkumar2203 commented Nov 12, 2024

#PACKAGE.JSON

{
"name": "Blind-Helper",
"version": "3.7.0",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"start": "react-native start",
"emulate": "react-native run-ios --simulator="iPad Pro (11-inch) (2nd generation)"",
"emulate10": "react-native run-ios --simulator="iPad (5th generation)"",
"set-env": "node setActiveEnv.js",
"test": "NODE_OPTIONS='--experimental-vm-modules --unhandled-rejections=strict' jest --watchAll --silent --unhandled-rejections=strict",
"test-ci": "NODE_OPTIONS='--experimental-vm-modules --unhandled-rejections=strict' jest --noStackTrace --silent --ci --collectCoverage",
"test:coverage": "jest --collectCoverage --silent",
"lint": "eslint .",
"update-pods": "cd ios && pod install && cd .. && sudo node scripts/before_build.js",
"instrumentDynatrace": "node node_modules/@dynatrace/react-native-plugin/scripts/instrument.js"
},
"dependencies": {
"@dynatrace/react-native-plugin": "^2.301.1",
"@react-native-async-storage/async-storage": "^2.0.0",
"@react-native-community/checkbox": "^0.5.17",
"@react-native-community/netinfo": "^11.4.1",
"@react-native-community/progress-bar-android": "^1.0.5",
"@react-native-masked-view/masked-view": "^0.3.2",
"@react-native-picker/picker": "^2.9.0",
"@react-navigation/drawer": "^7.0.0",
"@react-navigation/native": "^7.0.0",
"@react-navigation/stack": "^7.0.0",
"@realm/react": "^0.11.0",
"hermes-engine": "^0.11.0",
"i18next": "^23.16.4",
"lodash": "^4.17.21",
"matomo-tracker-react-native": "^0.3.2",
"moment": "^2.30.1",
"papaparse": "^5.4.1",
"prop-types": "^15.8.1",
"react": "18.3.1",
"react-i18next": "^15.1.1",
"react-native": "^0.76.1",
"react-native-app-auth": "^8.0.0",
"react-native-blob-util": "^0.19.11",
"react-native-date-picker": "^5.0.7",
"react-native-device-info": "^14.0.0",
"react-native-document-picker": "^9.3.1",
"react-native-dropdown-picker": "^5.4.6",
"react-native-elements": "^3.4.3",
"react-native-fs": "^2.20.0",
"react-native-gesture-handler": "^2.20.2",
"react-native-image-crop-picker": "^0.41.4",
"react-native-image-picker": "^7.1.2",
"react-native-image-zoom-viewer": "^3.0.1",
"react-native-linear-gradient": "^2.8.3",
"react-native-loading-spinner-overlay": "^3.0.1",
"react-native-localize": "^3.3.0",
"react-native-mail": "^6.1.1",
"react-native-network-bandwith-speed": "^3.0.0",
"react-native-paper": "^5.12.5",
"react-native-pdf": "^6.7.5",
"react-native-reanimated": "^3.16.1",
"react-native-safe-area-context": "^4.14.0",
"react-native-screens": "^4.0.0",
"react-native-sensitive-info": "^5.5.8",
"react-native-spinkit": "^1.5.1",
"react-native-splash-screen": "^3.3.0",
"react-native-svg": "^15.8.0",
"react-native-toast-message": "^2.2.1",
"react-native-vector-icons": "^10.2.0",
"react-redux": "^9.1.2",
"realm": "^20.0.0",
"redux": "^5.0.1",
"redux-observable": "^3.0.0-rc.2",
"redux-thunk": "^3.1.0",
"reselect": "^5.1.1",
"rxjs": "^7.8.1",
"save-dev": "^0.0.1-security"
},
"devDependencies": {
"@babel/core": "^7.26.0",
"@babel/eslint-parser": "^7.25.9",
"@babel/preset-env": "^7.26.0",
"@babel/runtime": "^7.26.0",
"@react-native-community/cli": "15.1.0",
"@react-native-community/cli-platform-android": "15.1.0",
"@react-native-community/cli-platform-ios": "15.1.0",
"@react-native-community/eslint-config": "^3.2.0",
"@react-native/babel-preset": "0.76.1",
"@react-native/eslint-config": "0.76.1",
"@react-native/metro-config": "0.76.1",
"@react-native/typescript-config": "0.76.1",
"@testing-library/jest-native": "^5.4.3",
"@testing-library/react-native": "12.8.1",
"@types/react": "^18.3.12",
"@types/react-test-renderer": "^18.3.0",
"babel-jest": "^29.7.0",
"detox": "^20.27.6",
"eslint": "^9.14.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^29.7.0",
"jest-circus": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"metro-config": "^0.81.0",
"prettier": "3.3.3",
"react-test-renderer": "18.3.1",
"reactotron-react-native": "^5.1.9",
"reactotron-redux": "^3.1.10",
"redux-mock-store": "^1.5.5",
"typescript": "5.6.3"
},
"engines": {
"node": ">=18"
},
"jest": {
"preset": "react-native",
"timers": "fake",
"testEnvironment": "jsdom",
"moduleNameMapper": {
".+\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$": "identity-obj-proxy"
},
"setupFiles": [
"/jest/Setup.js"
],
"transformIgnorePatterns": [
"node_modules/(?!(jest-)?@react-native|react-native|@react-native-community|@react-native-picker|react-native-vector-icons|react-icons|@dynatrace/react-native-plugin|matomo-tracker-react-native)"
],
"transform": {},
"setupFilesAfterEnv": [
"@testing-library/jest-native/extend-expect"
]
},
"detox": {
"testRunner": "jest",
"runnerConfig": "e2e/config.json",
"devices": {
"simulator": {
"type": "ios.simulator",
"device": {
"id": "92749BE8-811E-4339-B1C9-C4DC51B16861"
}
}
},
"apps": {
"ios.debug": {
"type": "ios.app",
"binaryPath": "ios/build/Build/Products/Debug-iphonesimulator/Blind-Helper.app",
"build": "xcodebuild -workspace ios/Blind-Helper.xcworkspace -configuration Debug -sdk iphonesimulator14.2 -scheme Blind-Helper -derivedDataPath ios/build",
"name": "Blind-Helper"
}
},
"configurations": {
"ios": {
"device": "simulator",
"app": "ios.debug",
"behavior": {
"reinstallApp": "false"
}
}
}
}
}

#Pod file

require Pod::Executable.execute_command('node', ['-p',
'require.resolve(
"react-native/scripts/react_native_pods.rb",
{paths: [process.argv[1]]},
)', dir]).strip

platform :ios, '15.6'
prepare_react_native_project!

linkage = ENV['USE_FRAMEWORKS']
if linkage != nil
Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
use_frameworks! :linkage => linkage.to_sym
end

target 'Blind-Helper' do
config = use_native_modules!

use_react_native!(
:path => config[:reactNativePath],
:app_path => "#{Pod::Config.instance.installation_root}/.."
)

pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'

pod 'react-native-dynatrace', :path => '../node_modules/@dynatrace/react-native-plugin'

target 'Blind-HelperTests' do
inherit! :complete
end

post_install do |installer|
react_native_post_install(
installer,
config[:reactNativePath],
:mac_catalyst_enabled => false,
)

installer.pods_project.targets.each do |target|
  target.build_configurations.each do |config|
    if config.name == 'Debug'
      config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
      config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', '_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION']
      config.build_settings["ONLY_ACTIVE_ARCH"] = "YES"
    end
  end
end

end
end

target 'Blind-Helper-tvOS' do

target 'Blind-Helper-tvOSTests' do
inherit! :search_paths
end
end

After upgraging all my library my app got stucked in landing screen afterwards im starting my metro manually it got crashed i dont why ??
Any solution

@Ajithkumar2203 Ajithkumar2203 changed the title React native app is not running after migrated from 0.71 to 0.76.1 React native app is not running after migrated from Version 0.71 to Version 0.76.1 Nov 12, 2024
@Ajithkumar2203
Copy link
Author

is there anything i missed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant