Skip to content
This repository was archived by the owner on Nov 27, 2022. It is now read-only.

feat: add ability to type tab names with SceneRendererProps #1247

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/types.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ export type Layout = {

export type Listener = (value: number) => void;

export type SceneRendererProps = {
export type SceneRendererProps<TKeys extends string = string> = {
layout: Layout;
position: Animated.AnimatedInterpolation;
jumpTo: (key: string) => void;
jumpTo: (key: TKeys) => void;
};

export type EventEmitterProps = {
Expand Down