-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Description
What happened?
- MainActivity and MainApplication files was changed form java to kt extension.
Java File
Kotlin File
How i should work with kotlin file in this case? As you see i MainActivity was extended NavigationActivity, But Navigation Activivty is Java file....
Ok, i tried to follow the instruction in installation guide running npx rnn-link and get this errors
After i fixed this by chaging this line in react-native-navigation/autolink/postlink/path.js:10:42) from
var mainApplicationJava = glob.sync('/MainApplication.java', ignoreFolders)[0]; to this
var mainApplicationJava = glob.sync('/MainApplication.{java,kt}', ignoreFolders)[0];
Anyway i have this error when i run npx rnn-link
npx rnn-link
Running Android postlink script.
Linking MainApplication...
Error: There was a problem extending NavigationApplication from your MainApplication file.
Error: There was a problem extending NavigationReactNativeHost().
SOLoader.init() is not called, skipping.
MainApplication.java was partially linked. Please check the information above and complete the missing steps manually:
https://wix.github.io/react-native-navigation/docs/installing#3-update-mainapplicationjava
MainActivity not found! Does the file exist in the correct folder?
Please check the manual installation docs:
https://wix.github.io/react-native-navigation/docs/installing#2-update-mainactivityjava
Linking root build.gradle...
Adding RNNKotlinVersion extension variable
Error: Could not add kotlin plugin dependency
Already specified minSdkVersion 21
Root build.gradle link partially succeeded. Please review the information above and complete the necessary steps manually by following the instructions on https://wix.github.io/react-native-navigation/docs/installing#1-update-androidbuildgradle
Running iOS postlink script.
AppDelegate not found! Does the file exist in the correct folder?
Please check the manual installation docs:
https://wix.github.io/react-native-navigation/docs/installing#native-installation
Updating Podfile...
RNN Pod has not been added to Podfile
Linking info.plist...
React Native Navigation link is completed. Check the logs above for more information.
If any of the steps failed, check the installation docs and go through the necessary steps manually:
https://wix.github.io/react-native-navigation/docs/installing#manual-installation
When you're done, don't forget to update the index.js file as mentioned in docs!
Thank you for using React Native Navigation!
.
Could you help me? I am using react native 0.74 . Node v18.20.3, "react-native-navigation": "^7.40.1",
What was the expected behaviour?
No response
Was it tested on latest react-native-navigation?
- I have tested this issue on the latest react-native-navigation release and it still reproduces.
Help us reproduce this issue!
No response
In what environment did this happen?
React Native Navigation version:
React Native version:
Has Fabric (React Native's new rendering system) enabled: (yes/no)
Node version:
Device model:
Android version:
