i am getting an event object from react navigation with its emit function. e.g.:
const event = navigation.emit({ type: "tabPress", target: route.key, canPreventDefault: true, });
the event type from above is like this: const event: EventArg<"tabPress", any, any>but i get an error with defaultPrevented prop. e.g.:
//Property 'defaultPrevented' does not exist on type 'EventArg<"tabPress", any, any>'. if (!event.defaultPrevented) {
i have searched and failed to find a solution, i just don't wanna use any.