expo / router

[ARCHIVE]: Expo Router has moved to expo/expo -- The File-based router for universal React Native apps

Home Page:https://docs.expo.dev/routing/introduction/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

listeners prop do not have types

muneebahmedayub opened this issue · comments

Which package manager are you using? (Yarn is recommended)

yarn

Summary

When using Tabs.Screen or any other navigation, the listener prop do not have types.
Expected behaviour is to have types

Minimal reproducible example

_layout.tsx


import { Tabs } from "expo-router";

export default function RootLayout() {
  return (
    <Tabs>
      <Tabs.Screen name="index" listeners={{
        // here there should be typescript intellisense
      }} />
    </Tabs>
  );
}