Skip to content

Commit 0644e1d

Browse files
committed
fix: remove TabViewAdapter as its no longer needed
1 parent eb2e36c commit 0644e1d

File tree

3 files changed

+3
-30
lines changed

3 files changed

+3
-30
lines changed

packages/react-native-bottom-tabs/src/TabView.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { BottomTabBarHeightContext } from './utils/BottomTabBarHeightContext';
1212

1313
//@ts-ignore
1414
import type { ImageSource } from 'react-native/Libraries/Image/ImageSource';
15-
import TabViewAdapter from './TabViewAdapter';
15+
import NativeTabView from './TabViewNativeComponent';
1616
import useLatestCallback from 'use-latest-callback';
1717
import type { BaseRoute, NavigationState } from './types';
1818

@@ -270,7 +270,7 @@ const TabView = <Route extends BaseRoute>({
270270

271271
return (
272272
<BottomTabBarHeightContext.Provider value={tabBarHeight}>
273-
<TabViewAdapter
273+
<NativeTabView
274274
{...props}
275275
{...tabLabelStyle}
276276
style={styles.fullWidth}
@@ -332,7 +332,7 @@ const TabView = <Route extends BaseRoute>({
332332
</View>
333333
);
334334
})}
335-
</TabViewAdapter>
335+
</NativeTabView>
336336
</BottomTabBarHeightContext.Provider>
337337
);
338338
};

packages/react-native-bottom-tabs/src/TabViewAdapter.android.tsx

Lines changed: 0 additions & 20 deletions
This file was deleted.

packages/react-native-bottom-tabs/src/TabViewAdapter.tsx

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)