diff --git a/src/Navigation.tsx b/src/Navigation.tsx index 0a77ae58..10b40da9 100644 --- a/src/Navigation.tsx +++ b/src/Navigation.tsx @@ -103,7 +103,7 @@ export const Navigation = () => { /> void; + index: number; + isLast: boolean; + item: OnboardingScreenItem; + width: number; +} + +const OnboardingPage: React.FC = React.memo(({ + active = false, + closeOnboarding, + isLast, + item, + width, +}) => { + let media; + switch (item.media.type) { + case 'image': + media = ( + + ); + break; + case 'video': + media = ( + + + ); + break; + } + + return ( + + + {item.title} + + + + {media} + + + + + {item.description} + + + {isLast && +