https://stackoverflow.com/questions/71836843/upgraded-react-native-version
android > settings.gradle 내용 변경
rootProject.name = 'my_app'
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
include ':app'
includeBuild('../node_modules/react-native-gradle-plugin')
if (settings.hasProperty("newArchEnabled") && settings.newArchEnabled == "true") {
include(":ReactAndroid")
project(":ReactAndroid").projectDir = file('../node_modules/react-native/ReactAndroid')
}
package.json
{
"name": "my_app",
"version": "0.0.1",
"private": true,
"scripts": {
"android-d": "react-native run-android --variant=debug",
"android": "react-native run-android --variant=release",
"ios": "react-native run-ios",
"start": "react-native start",
"test": "jest",
"lint": "eslint .",
"build-android": "cd ./android && ./gradlew app:bundleRelease --stacktrace",
"build": "cd ./android && ./gradlew assembleRelease",
"build-debug": "cd ./android && ./gradlew assembleDebug",
"bundle": "cd ./android && ./gradlew app:bundleRelease",
"clean": "cd ./android && ./gradlew clean",
"devtools": "react-devtool"
},
"dependencies": {
"@react-native-async-storage/async-storage": "^1.15.14",
"@react-native-firebase/app": "^14.11.0",
"@react-native-firebase/dynamic-links": "^14.11.0",
"@react-native-firebase/messaging": "^14.11.0",
"@react-navigation/native": "^6.0.6",
"@react-navigation/stack": "^6.0.11",
"react": "17.0.2",
"react-native": "0.68.2",
"react-native-webview": "^11.22.2",
"react-native-gesture-handler": "^2.1.0",
"react-native-safe-area-context": "^3.3.2",
"react-native-screens": "^3.10.1",
"react-native-send-intent": "^1.3.0",
"react-router-dom": "^6.2.1"
},
"devDependencies": {
"@babel/core": "^7.8.4",
"@babel/runtime": "^7.8.4",
"@react-native-community/eslint-config": "^1.1.0",
"babel-jest": "^25.1.0",
"eslint": "^6.5.1",
"jest": "^25.1.0",
"metro-react-native-babel-preset": "^0.59.0",
"react-test-renderer": "16.13.1"
},
"jest": {
"preset": "react-native"
}
}