About this animation
A React Native onboarding screen can introduce a product and collect a first detail without separating atmosphere from the form. This full-screen welcome alternates between two loaded photos, brings each new image upward over the previous one, and carries its color into translucent phone fields. Use it for hospitality, travel, membership, social, or other image-led sign-up flows. Expo Image waits for the incoming asset and keeps only the current and next slides mounted. One Reanimated progress value synchronizes the rise, scale, parallax, darkening, and tint interpolation, while Expo Linear Gradient supports the layered finish. Customize slides, headline, form labels, timing, fonts, callbacks, automatic advance, and imperative next, pause, and resume controls.
When to use it
- Introduce an image-led product during sign-up.
- Collect a phone number on a welcome screen.
- Rotate through branded photography automatically.
- Synchronize form tint with each incoming image.
A welcome form with rising photos and image-linked field colors, with configurable slides, copy, phone label, and fonts.
How it works
- The component keeps only the current and next images mounted, then waits for the incoming image to load before moving it.
- A single continuous
progressshared value drives every animated property, keeping the photo layers and field tint synchronized on the UI thread. - The incoming photo follows a measured upward easing curve while its scale settles over a longer, softer tail.
- The outgoing photo moves more slowly, grows slightly, and darkens to create depth without competing with the new image.
interpolateColorblends the translucent fields from the outgoing slide's tint to the incoming slide's tint over the same entrance.
Install
npx expo install react-native-reanimated react-native-worklets expo-image expo-linear-gradientThis component also imports react-native-worklets, which is installed with Reanimated in an Expo project.
Usage
import RisingPhotoWelcome from './RisingPhotoWelcome';
const slides = [
{ image: require('./assets/lounge.jpg'), tint: '#556467' },
{ image: require('./assets/garden.jpg'), tint: '#607D53' },
];
export function WelcomeScreen() {
return <RisingPhotoWelcome slides={slides} />;
}Use the timing, fonts, callbacks, and imperative controls to adapt the pattern:
import { useRef } from 'react';
import RisingPhotoWelcome, {
type RisingPhotoWelcomeRef,
} from './RisingPhotoWelcome';
export function WelcomeScreen() {
const welcomeRef = useRef<RisingPhotoWelcomeRef>(null);
return (
<RisingPhotoWelcome
ref={welcomeRef}
slides={slides}
title="NORTH"
subtitle="Save a place for tonight."
interval={3200}
transitionDuration={900}
titleFontFamily="YourSerifFont"
bodyFontFamily="YourSansFont"
monoFontFamily="YourMonoFont"
onCountryPress={() => openCountryPicker()}
onSubmit={(phone) => continueWith(phone)}
onIndexChange={(index) => trackVisiblePhoto(index)}
/>
);
}The forwarded ref exposes next(), pause(), and resume().
Props
| Prop | Type | Default | Description |
|---|---|---|---|
slides | WelcomeSlide[] | Required | At least two { image, tint } entries. |
title | string | 'WELCOME' | Large heading near the top. |
subtitle | string | 'Find the places you love.' | Supporting copy below the heading. |
phoneLabel | string | 'Phone number' | Label above the phone controls. |
countryCode | string | '+1' | Text inside the country-code button. |
placeholder | string | '(555) 000-0000' | Phone input placeholder. |
onPhoneChange | (value: string) => void | — | Called after each phone-number edit. |
onSubmit | (value: string) => void | — | Called by the keyboard's done action. |
onCountryPress | () => void | — | Called when the country-code button is pressed. |
onIndexChange | (index: number) => void | — | Called when an incoming photo reaches its final position. |
autoAdvance | boolean | true | Enables automatic transitions. |
interval | number | 2400 | Milliseconds from one transition start to the next. |
transitionDuration | number | 1000 | Duration of the upward entrance in milliseconds. |
titleFontFamily | string | System font | Font used for the heading. |
bodyFontFamily | string | System font | Font used for supporting text and the country code. |
monoFontFamily | string | System font | Font used for the phone input. |
style | StyleProp<ViewStyle> | — | Outer-container style. |
testID | string | — | Test identifier for the outer container. |
Compatibility
- Expo SDK 58
- React Native 0.88
- Reanimated 4.7 and Worklets 0.13
- iOS: supported
- Android: supported
- Web: supported
- Works in Expo Go because all native dependencies are included in the SDK
Accessibility
The country-code control is exposed as a labeled button and the phone field uses its visible label as its accessibility label. Focusing the phone field pauses automatic transitions and blurring it resumes them. When reduced motion is enabled, the rise, scale, and parallax are replaced by a 220 ms crossfade while the tint still transitions in sync.
The country-code button responds on press with an interruptible spring. Both controls have at least 48 pt of usable height. The full-screen layout expects its parent to apply safe-area insets; embedded layouts use the space provided by the parent.
Customization notes
Set slides[].tint to theme the glass fields for each photograph.
FAQ
- Does this onboarding screen work in Expo Go?
- Yes. Expo Image, Expo Linear Gradient, Reanimated, and Worklets are included with Expo SDK 58 and Expo SDK 57. Each published piece is reviewed on physical iPhone and Android devices with Expo Go before release.
- Can I replace the photos, copy, and form behavior?
- Yes. Supply at least two image-and-tint slides, replace all visible copy, choose timing and fonts, and handle phone changes, submission, country selection, and slide changes.
- How does it avoid distracting people during input?
- Focusing the phone field pauses automatic transitions and blur resumes them. Reduce Motion replaces rise, scale, and parallax with a synchronized 300 ms crossfade.





