Skip to content

Navigation Menu

Sign in
Sign up

v8.0.0-alpha.0 #1567

Unanswered
grabbou asked this question in Q&A
Feb 25, 2022 · 3 comments · 8 replies
Discussion options


This discussion was created from the release v8.0.0-alpha.0.
You must be logged in to vote

Replies: 3 comments 8 replies

Comment options

@grabbou what do you think about this PR #1556 for custom placeholder, if you test it than i will write test cases for approve this

You must be logged in to vote
0 replies
Comment options

The auto-linking of iOS native libs for some packages is broken. and it looks like the ones that overrides ios dependency in the config or config.

Does not reproduce with 7.0.2

Also, I can see this warning:
warn Package react-native-flipper has been ignored because it contains invalid configuration. Reason: "dependency.platforms.ios.project" is not allowed

You must be logged in to vote
2 replies
Comment options

cc @grabbou (he's on vacation right now, so might respond later)

Comment options

Just an FYI for people in case they come across this, this is why some plugins (e.g. redux-flipper) have stopped working and for the message

The native module for Flipper seems unavailable. Please verify that `react-native-flipper` is installed as yarn dependency to your project and, for iOS, that `pod install` is run in the `ios` directory.

It looks like the following patch works for iOS and Android (you'll need to rebuild/pod install)

diff --git a/node_modules/react-native-flipper/react-native.config.js b/node_modules/react-native-flipper/react-native.config.js
index 9b962ed..35cbe80 100644
--- a/node_modules/react-native-flipper/react-native.config.js
+++ b/node_modules/react-native-flipper/react-native.config.js
@@ -8,13 +8,4 @@
 */
 
 module.exports = {
- dependency: {
- platforms: {
- ios: {
- // This file should not be needed at all, but without it.
- // cli 4.2.2 will search for an xcode project
- project: '.',
- },
- },
- },
 };
Comment options

👋 I noticed that with v8 there are less project configuration properties for Android project (old vs new). In new version there is no possibility to specify custom path for build and settings Gradle scripts.

My use case would be to have a support for Gradle scripts in Kotlin DSL (instead of Groovy DSL).
With cli versions < 8, it was possible to specify path that points to build.gradle.kts (and not build.gradle) file. Without that manual workaround, autolinking fails with Couldn't locate file at '<path-to-app-project>/build.gradle' .

Will it still be possible to pass different path to the configuration? Or will cli support Gradle Kotlin DSL at some point?

You must be logged in to vote
6 replies
Comment options

Sure, actually I tested v8 and it properly handles Kotlin DSL 👍 . I will make PRs for v6 and v7

Comment options

v6 PR - #1578
v7 PR - #1579

cc @thymikee

Comment options

Hm, since it's working with v8 as you tested and it also works with v7 with a small configuration change, maybe it's not worth to change it at all?

Comment options

I think that small configuration change is a workaround. If we can fix it, then I think it's worth it.
Also v6 & v7 will still be used for some time and as I understand, we don't need to specify exact version of cli when bootstrapping projects, so it should automatically pick latest one, shouldn't it?

Comment options

Yup, as long as it's not locked with a lockfile

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

AltStyle によって変換されたページ (->オリジナル) /