wix / react-native-navigation

A complete native navigation solution for React Native
https://wix.github.io/react-native-navigation/
MIT License
13.04k stars 2.67k forks source link

running npx rnn link reports an error #7912

Closed shellyaoo closed 1 week ago

shellyaoo commented 1 week ago

The React Native Navigation version is 7.37.0 The node version is 20.13.0 The React version is 18.3.1 React Native version is 0.75.2 I want to create a tab bar using React Native Navigation However, when I installed it, running NPX RNN link encountered an error The error is as follows: exports.rootGradle = mainApplicationJava.replace(/android\/app\/.*.java/, "android/build.gradle");; ^ TypeError: Cannot read properties of undefined (reading 'replace')

I looked at the path.js file in the node_modules folder, and found that mainApplication Java obtained the MainApplication. java file. However, the files in my Android are MainApplication. kt and MainActivity. kt files, and there are no files related to the. java suffix. Therefore, the mainApplication Java variable obtained is undefined, I don't understand Android native. What should I do to use React Native Navigation in my project? Thank you 1726153500122 image

github-actions[bot] commented 1 week ago

We use the issue tracker exclusively for bug reports and feature requests. This issue appears to be a general usage or support question. Instead, please ask a question on Stack Overflow with the wix-react-native-navigation tag or on Discord.

zabojad commented 2 days ago

Just having the same issue right now. Did you find a way out @shellyaoo ?