expo-router-layouts-example icon indicating copy to clipboard operation
expo-router-layouts-example copied to clipboard

How to resolve type error in `material-top-tabs` example

Open salieflewis opened this issue 5 months ago • 1 comments

import {
  createMaterialTopTabNavigator,
  MaterialTopTabNavigationOptions,
} from "@react-navigation/material-top-tabs";
import { withLayoutContext } from "expo-router";

const { Navigator } = createMaterialTopTabNavigator();

export const MaterialTopTabs = withLayoutContext<
  MaterialTopTabNavigationOptions,
  typeof Navigator
>(Navigator);

Expected 4 type arguments, but got 2.

What else is expected?

salieflewis avatar Aug 28 '24 17:08 salieflewis