ptomasroos / react-native-scrollable-tab-view

Tabbed navigation that you can swipe between, each tab can have its own ScrollView and maintain its own scroll position between swipes. Pleasantly animated. Customizable tab bar
https://www.npmjs.com/package/react-native-scrollable-tab-view
6.93k stars 2.29k forks source link

View add tabLabel props,ts will output an error,View not have this props,how to fix #1156

Open lvan-zhang opened 2 years ago

lvan-zhang commented 2 years ago

image

Brettm12345 commented 2 years ago
import React, {FC} from 'react'
import {View, ViewProps} from 'react-native'

interface TabProps extends ViewProps {
  tabLabel: string;
}
export const TabView: FC<TabProps> = ({tabLabel, ...props}) => (
  <View {...props} />
)