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 0.77.x #7945

Open
ertugruldogan opened this issue Dec 9, 2024 · 3 comments
Open

React Native 0.77.x #7945

ertugruldogan opened this issue Dec 9, 2024 · 3 comments

Comments

@ertugruldogan
Copy link

ertugruldogan commented Dec 9, 2024

The for Android 0.77.x

> Task :react-native-navigation:compileReactNative71DebugKotlin FAILED
e: node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/react/modal/ModalHostLayout.kt:38:44 Argument type mismatch: actual type is 'android.view.ViewStructure?', but 'android.view.ViewStructure' was expected.
e: node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/utils/ReactViewGroup.kt:3:38 Unresolved reference 'ReactViewBackgroundDrawable'.
e: node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/utils/ReactViewGroup.kt:7:29 Unresolved reference 'ReactViewBackgroundDrawable'.
e: node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/utils/ReactViewGroup.kt:7:59 Unresolved reference 'fullBorderRadius'.
e: node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/viewcontroller/LayoutDirectionApplier.kt:11:45 Argument type mismatch: actual type is 'com.facebook.react.bridge.ReactContext?', but 'android.content.Context' was expected.
e: node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/viewcontroller/LayoutDirectionApplier.kt:12:45 Argument type mismatch: actual type is 'com.facebook.react.bridge.ReactContext?', but 'android.content.Context' was expected.
e: node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/views/element/animators/BackgroundColorAnimator.kt:8:38 Unresolved reference 'ReactViewBackgroundDrawable'.
e: node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/views/element/animators/BackgroundColorAnimator.kt:14:40 Unresolved reference 'ReactViewBackgroundDrawable'.
e: node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/views/element/animators/BackgroundColorAnimator.kt:15:39 Unresolved reference 'ReactViewBackgroundDrawable'.
e: node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/views/element/animators/BackgroundColorAnimator.kt:15:95 Unresolved reference 'ReactViewBackgroundDrawable'.
e: node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/views/element/animators/BackgroundColorAnimator.kt:15:124 Unresolved reference 'color'.
e: node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/views/element/animators/BackgroundColorAnimator.kt:15:156 Unresolved reference 'ReactViewBackgroundDrawable'.
e: node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/views/element/animators/BackgroundColorAnimator.kt:15:185 Unresolved reference 'color'.
e: node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/views/element/animators/BackgroundColorAnimator.kt:21:82 Unresolved reference 'ReactViewBackgroundDrawable'.
e: node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/views/element/animators/BackgroundColorEvaluator.kt:5:38 Unresolved reference 'ReactViewBackgroundDrawable'.
e: node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/views/element/animators/BackgroundColorEvaluator.kt:7:56 Unresolved reference 'ReactViewBackgroundDrawable'.
e: node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/views/element/animators/BackgroundColorEvaluator.kt:12:20 Unresolved reference 'color'.
e: node_modules/react-native-navigation/lib/android/app/src/reactNative71/java/com/reactnativenavigation/react/modal/ModalContentLayout.kt:53:56 Argument type mismatch: actual type is 'android.view.MotionEvent?', but 'android.view.MotionEvent' was expected.
e: node_modules/react-native-navigation/lib/android/app/src/reactNative71/java/com/reactnativenavigation/react/modal/ModalContentLayout.kt:53:70 Argument type mismatch: actual type is 'com.facebook.react.uimanager.events.EventDispatcher?', but 'com.facebook.react.uimanager.events.EventDispatcher' was expected.
e: node_modules/react-native-navigation/lib/android/app/src/reactNative71/java/com/reactnativenavigation/react/modal/ModalContentLayout.kt:56:56 Argument type mismatch: actual type is 'android.view.MotionEvent?', but 'android.view.MotionEvent' was expected.
e: node_modules/react-native-navigation/lib/android/app/src/reactNative71/java/com/reactnativenavigation/react/modal/ModalContentLayout.kt:56:70 Argument type mismatch: actual type is 'com.facebook.react.uimanager.events.EventDispatcher?', but 'com.facebook.react.uimanager.events.EventDispatcher' was expected.
e: node_modules/react-native-navigation/lib/android/app/src/reactNative71/java/com/reactnativenavigation/react/modal/ModalContentLayout.kt:59:54 Argument type mismatch: actual type is 'android.view.MotionEvent?', but 'android.view.MotionEvent' was expected.
e: node_modules/react-native-navigation/lib/android/app/src/reactNative71/java/com/reactnativenavigation/react/modal/ModalContentLayout.kt:59:68 Argument type mismatch: actual type is 'com.facebook.react.uimanager.events.EventDispatcher?', but 'com.facebook.react.uimanager.events.EventDispatcher' was expected.
e: node_modules/react-native-navigation/lib/android/app/src/reactNative71/java/com/reactnativenavigation/react/modal/ModalContentLayout.kt:76:5 'onInterceptTouchEvent' overrides nothing.
e: node_modules/react-native-navigation/lib/android/app/src/reactNative71/java/com/reactnativenavigation/react/modal/ModalContentLayout.kt:77:45 Argument type mismatch: actual type is 'android.view.MotionEvent?', but 'android.view.MotionEvent' was expected.
e: node_modules/react-native-navigation/lib/android/app/src/reactNative71/java/com/reactnativenavigation/react/modal/ModalContentLayout.kt:77:52 Argument type mismatch: actual type is 'com.facebook.react.uimanager.events.EventDispatcher?', but 'com.facebook.react.uimanager.events.EventDispatcher' was expected.
e: node_modules/react-native-navigation/lib/android/app/src/reactNative71/java/com/reactnativenavigation/react/modal/ModalContentLayout.kt:78:44 Argument type mismatch: actual type is 'android.view.MotionEvent?', but 'android.view.MotionEvent' was expected.
e: node_modules/react-native-navigation/lib/android/app/src/reactNative71/java/com/reactnativenavigation/react/modal/ModalContentLayout.kt:81:5 'onTouchEvent' overrides nothing.
e: node_modules/react-native-navigation/lib/android/app/src/reactNative71/java/com/reactnativenavigation/react/modal/ModalContentLayout.kt:82:45 Argument type mismatch: actual type is 'android.view.MotionEvent?', but 'android.view.MotionEvent' was expected.
e: node_modules/react-native-navigation/lib/android/app/src/reactNative71/java/com/reactnativenavigation/react/modal/ModalContentLayout.kt:82:52 Argument type mismatch: actual type is 'com.facebook.react.uimanager.events.EventDispatcher?', but 'com.facebook.react.uimanager.events.EventDispatcher' was expected.
e: node_modules/react-native-navigation/lib/android/app/src/reactNative71/java/com/reactnativenavigation/react/modal/ModalContentLayout.kt:83:28 Argument type mismatch: actual type is 'android.view.MotionEvent?', but 'android.view.MotionEvent' was expected.

Files that appear to be faulty

src/main/java/com/reactnativenavigation/react/modal/ModalHostLayout.kt
src/main/java/com/reactnativenavigation/utils/ReactViewGroup.kt
src/main/java/com/reactnativenavigation/viewcontrollers/viewcontroller/LayoutDirectionApplier.kt
src/main/java/com/reactnativenavigation/views/element/animators/BackgroundColorAnimator.kt
src/main/java/com/reactnativenavigation/views/element/animators/BackgroundColorEvaluator.kt
src/reactNative71/java/com/reactnativenavigation/react/modal/ModalContentLayout.kt

But all the troubleshooting depends on these files
2024-12-09_13-41-28

react-native: 0.77.x
react-native-navigation: 7.40.3
java: 17
node: 22.5.1
gradle: 8.10.2
buildToolsVersion = "35.0.0"
minSdkVersion = 24
compileSdkVersion = 35
targetSdkVersion = 35
ndkVersion = "27.2.12479018"
kotlinVersion = "2.0.21"

android\gradle.properties
newArchEnabled=false
hermesEnabled=true

@andres3dc
Copy link

Hi!
Any solution for this? I have the same error

@ertugruldogan
Copy link
Author

There is a solution but first we need to switch from 0.77.rc version to normal version. Let's wait a bit.

@peteAhn
Copy link

peteAhn commented Jan 8, 2025

At last, next week, it will be released 0.77.
FYI.
https://github.com/facebook/react-native/releases/tag/v0.77.0-rc.6

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

3 participants