expo / router

[ARCHIVE]: Expo Router has moved to expo/expo -- The File-based router for universal React Native apps
https://docs.expo.dev/routing/introduction/
1.36k stars 113 forks source link

listeners prop do not have types #860

Closed muneebahmedayub closed 1 year ago

muneebahmedayub commented 1 year ago

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>
  );
}