Repository: wix/react-native-navigation

Issue #7647: Getting warning all the time about dependency.assets and dependency.hooks
Created: 2022-11-30T14:47:00Z
🐛 Bug Report
After installing React Native Navigation and auto-linking it (npx rnnlink), I see this warning on every attempt to run React Native CLI scripts:
warn Package react-native-navigation contains invalid configuration: "dependency.assets" is not allowed,"dependency.hooks" is not allowed. Please verify it's properly linked using "react-native config" command and contact the package maintainers about this.

Have you read the Contributing Guidelines on issues?
No.
To Reproduce

npx react-native init DemoProject
Go inside the project.
npm install
npm install --save react-native-navigation
npx rnn-link
pod install --project-directory=ios
npm start

Expected behavior
I guess we should not see this warning. Something's not correct.
Actual Behavior
Any npx react-native ... command warns me about this:

Your Environment
System:
    OS: macOS 12.6
    CPU: (8) x64 Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz
    Memory: 34.81 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 19.2.0 - ~/.nvm/versions/node/v19.2.0/bin/node
    Yarn: Not Found
    npm: 9.1.2 - ~/.nvm/versions/node/v19.2.0/bin/npm
    Watchman: 2022.10.24.00 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.11.3 - /Users/yaroslavs/.rbenv/shims/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.4, iOS 16.0, macOS 12.3, tvOS 16.0, watchOS 9.0
    Android SDK: Not Found
  IDEs:
    Android Studio: 2021.3 AI-213.7172.25.2113.9123335
    Xcode: 14.0.1/14A400 - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.17 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.1.0 => 18.1.0 
    react-native: 0.70.6 => 0.70.6 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Reproducible Demo
https://github.com/noomorph/rnn-7647
Are you willing to resolve this issue by submitting a Pull Request?
✖️ No, I don’t have the time, and I’m okay to wait for the community/maintainers to resolve this issue.

Duplicate issue #7708: warn Package react-native-navigation contains invalid configuration: "dependency.assets" is not allowed,"dependency.hooks" is not allowed. Please verify it's properly linked using "react-native config" command and contact the package maintainers about this.
Created: 2023-05-04T09:48:49Z
What happened?
I'm getting the following warning on app startup after updating the react-native library to 0.71.7:
warn Package react-native-navigation contains invalid configuration: "dependency.assets" is not allowed,"dependency.hooks" is not allowed. Please verify it's properly linked using "react-native config" command and contact the package maintainers about this.
What was the expected behaviour?
Run without warnings
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!

Update react-native library to v0.71.7
run the app

In what environment did this happen?
React Native Navigation version: 7.32.1
React Native version: 0.71.7
Has Fabric (React Native's new rendering system) enabled: (yes/no)
Node version: 20.0.0

Closing comment (2023-06-11T22:10:25Z): Duplicate of #7647.