Skip to content

chore: Upgrade react-native to latest version #81

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

Closed
wants to merge 34 commits into from
Closed

Conversation

MateWW
Copy link

@MateWW MateWW commented Dec 7, 2020

No description provided.

]

apply from: "../../../node_modules/react-native/react.gradle"
apply from: "../../node_modules/react-native/react.gradle"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This path is incorrect. The repo is set up in a way that in the root is a library with all required dependencies. In Example directory, there is an example app that is supposed to use the library, react-native, and all other dependencies from the root and not from its own node_modules.

This needs to be reverted.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Trancever @dratwas said he's fine with creation of 2 separated package.json and simplify this path's.

Copy link
Author

@MateWW MateWW Dec 15, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also it's worth to mention that some of our packages have separate example package.json like paper, viewpager, fbads

minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
// Detox-specific additions to pro-guard
proguardFile "${rootProject.projectDir}/../node_modules/detox/android/detox/proguard-rules-app.pro"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make sure it points to the correct node_modules

@@ -161,3 +222,5 @@ task copyDownloadableDepsToLibs(type: Copy) {
from configurations.compile
into 'libs'
}

apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
apply from: file("../../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)

rootProject.name = 'ImageEditorExample'

rootProject.name = 'ReactNativeImageEditorExample'
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make sure this path points to node_modules in the root.

"test:android:build:debug": "detox build -c android.emu.debug",
"test:android:build:release": "detox build -c android.emu.release",
"test:android:bundle:release": "mkdir -p .tmp && react-native bundle --max-workers 4 --platform android --dev false --entry-file index.js --bundle-output .tmp/android-bundle.js",
"test:ios:test:debug": "detox test -c ios.sim.debug",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need this file. Example app should use same dependencies as library. Check my first comment for more information

@MateWW MateWW force-pushed the rn-upgrade branch 2 times, most recently from d25952c to 7ec2d12 Compare December 22, 2020 16:04
@retyui
Copy link
Collaborator

retyui commented Nov 10, 2023

Thanks for PR
I updated RN to the latest ver. in this pr #124

@retyui retyui closed this Nov 10, 2023
@retyui retyui deleted the rn-upgrade branch December 24, 2023 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants