diff --git a/README.md b/README.md
index 10105a63..017546cc 100644
--- a/README.md
+++ b/README.md
@@ -248,7 +248,7 @@ All props are optional, but if you are not rendering a header, you'd be probably
| `headerContainerStyle?` | Styles applied to header and tabbar container. | `undefined` |
| `preventTabPressOnGliding?` | Prevent tab press if screen is gliding. Ignored if `renderTabBar` is provided. | `true` |
| `disableSnap?` | Disable the snap animation. | `false` |
-| `renderTabBar?` | Same as [renderTabBar](https://github.com/satya164/react-native-tab-view#rendertabbar) of the original [TabView](https://github.com/satya164/react-native-tab-view#tabview), but with the additional `isGliding` property. | `undefined` |
+| `renderTabBar?` | Same as [renderTabBar](https://github.com/satya164/react-native-tab-view#rendertabbar) of the original [TabView](https://github.com/satya164/react-native-tab-view#tabview), but with the additional `isGliding` and `preventTabPressOnGliding` properties. | `undefined` |
| `snapThreshold?` | Percentage of header height to make the snap effect. A number between 0 and 1. | `0.5` |
| `snapTimeout?` | How long to wait before initiating the snap effect, in milliseconds. | `250` |
| `onHeaderHeightChange?` | Callback fired when the `headerHeight` state value inside `CollapsibleTabView` will be updated in the `onLayout` event from the tab/header container.
Useful to call layout animations. Example:
() => {LayoutAnimation.configureNext(preset)};
| `undefined` |
diff --git a/example/src/App.tsx b/example/src/App.tsx
index bc08b93e..8cede50d 100644
--- a/example/src/App.tsx
+++ b/example/src/App.tsx
@@ -22,6 +22,7 @@ import CollapsibleTabViewSmallContentExample from './CollapsibleTabViewSmallCont
import CollapsibleTabViewNoSnapExample from './CollapsibleTabViewNoSnapExample';
import CollapsibleTabViewResizeExample from './CollapsibleTabViewResizeExample';
import CollapsibleTabViewDemoExample from './CollapsibleTabViewDemoExample';
+import CollapsibleTabViewCustomTabBarExample from './CollapsibleTabViewCustomTabBarExample';
import CollapsibleTabViewCenteredEmptyListExample from './CollapsibleTabViewCenteredEmptyListExample';
import MaterialTopTabsCollapsibleTabViewDemoExample from './NavigationExample';
import CollapsibleTabViewNoUpfrontHeightExample from './CollapsibleTabViewNoUpfrontHeightExample';
@@ -42,6 +43,7 @@ const EXAMPLE_COMPONENTS: ExampleComponentType[] = [
CollapsibleTabViewNoSnapExample,
CollapsibleTabViewResizeExample,
CollapsibleTabViewDemoExample,
+ CollapsibleTabViewCustomTabBarExample,
CollapsibleTabViewSmallContentExample,
CollapsibleTabViewNoUpfrontHeightExample,
MaterialTopTabsCollapsibleTabViewDemoExample,
diff --git a/example/src/CollapsibleTabViewCustomTabBarExample.tsx b/example/src/CollapsibleTabViewCustomTabBarExample.tsx
new file mode 100644
index 00000000..e669d748
--- /dev/null
+++ b/example/src/CollapsibleTabViewCustomTabBarExample.tsx
@@ -0,0 +1,128 @@
+import * as React from 'react';
+import { StyleSheet, View, Text, Animated } from 'react-native';
+import {
+ CollapsibleTabView,
+ RenderTabBarProps,
+ useCollapsibleScene,
+} from 'react-native-collapsible-tab-view';
+import { SceneMap, TabBarProps, TabBar } from 'react-native-tab-view';
+import { ExampleComponentType } from './types';
+
+type Route = {
+ key: string;
+ title: string;
+ icon?: string;
+};
+
+const SomeRoute: React.FC<{ routeKey: string; color: string }> = ({
+ routeKey,
+ color,
+}) => {
+ const scrollPropsAndRef = useCollapsibleScene(routeKey);
+
+ return (
+