Skip to content

Plugin hook types incorrectly resolve to any (or unresolved) #237

@0xFA11

Description

@0xFA11

Describe the bug

I think this issue started to happen after 1.6.0 and still persists through 1.7.0, 1.8.0 and 1.8.1

Couple of screenshots:

Image Image Image

I'm not sure what, where and when types like useNetworkActivityDevTools_2 and useReactNavigationDevTools_2 were meant to be defined but as it stands right now, typescript (and eslint to that extent) struggles to resolve hook types.

FWIW, I have all of these rozenite plugins as devDependencies, IDK if relevant to this issue though:

	"devDependencies": {
		"@sentry/cli": "3.3.5",
		"@rozenite/metro": "1.8.1",
		"@rozenite/overlay-plugin": "1.8.1",
		"@rozenite/tanstack-query-plugin": "1.8.1",
		"@rozenite/react-navigation-plugin": "1.8.1",
		"@rozenite/network-activity-plugin": "1.8.1",
		"@rozenite/file-system-plugin": "1.8.1",
		"@rozenite/redux-devtools-plugin": "1.8.1"
	}

System Info

Expo SDK 55

`bunx expo-env-info@latest`

  expo-env-info 2.0.12 environment info:
    System:
      OS: macOS 26.4.1
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 25.9.0 - /opt/homebrew/bin/node
      npm: 11.12.1 - /opt/homebrew/bin/npm
    Managers:
      CocoaPods: 1.16.2 - /opt/homebrew/bin/pod
    SDKs:
      iOS SDK:
        Platforms: DriverKit 25.4, iOS 26.4, macOS 26.4, tvOS 26.4, visionOS 26.4, watchOS 26.4
    IDEs:
      Android Studio: 2025.3 AI-253.32098.37.2534.15232325
      Xcode: 26.4.1/17E202 - /usr/bin/xcodebuild
    npmPackages:
      expo: 55.0.23 => 55.0.23 
      expo-router: 55.0.14 => 55.0.14 
      expo-updates: 55.0.21 => 55.0.21 
      react: catalog:react => 19.2.0 
      react-dom: catalog:react => 19.2.0 
      react-native: 0.83.6 => 0.83.6 
    npmGlobalPackages:
      eas-cli: 10.2.2
    Expo Workflow: managed

Rozenite Version

1.8.1, 1.8.0, 1.7.0

Reproduction

creating an empty expo project and adding some rozenite plugins like network-activity-plugin or react-navigation-plugin would be enough

Steps to reproduce

creating an empty expo project and adding some rozenite plugins like network-activity-plugin or react-navigation-plugin would be enough

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions