Now In Code
Get access

Plan Selector Subscription Paywall

A blue-gradient header with badge, avatars and laurel sits above a plan card and two price cards that cross-fade a 2pt selection outline on tap, with a Best deal tag. Dark and light themes share one core in HTML and React Native.

Inspired by a design by @Babayanski_12 on XRebuilt from scratch by Now In Code

Agent prompt

Add the Now In Code component "plan-selector-subscription-paywall" to this project.

The full source is attached at the end of this prompt. Put the files under components/plan-selector-subscription-paywall/, install the listed dependencies with `npx expo install`, and render it on a route I can open.

Keep the timing and easing values documented in the source comments. Replace the sample copy and artwork with content from my app, or leave placeholders and list what I still need to supply.

=== Source files are attached here for paid plans ===
Pro piece. The prompt includes the full source.Get access

Details

Platforms
iOS, Android
Requires
Expo SDK 54+
Access
Pro
Updated
28 Oct 2026
License
Unlimited commercial projects
Original design
@Babayanski_12 on X

Are you the designer? Ask us to change or remove this.

CLI and MCP server Coming soon

Add pieces from the terminal or let your agent fetch them. Until then, Copy prompt does the same job. Docs

What it does

A fitness subscription paywall in dark and light themes. A blue gradient header carries a badge, a row of member avatars and a laurel branch on each side. Below it sit a plan summary card and two price cards, Weekly and Yearly, with a "Save 90% - Best deal" tag on the yearly one. Tapping a price card scales it down slightly while pressed and cross-fades a blue selection outline onto it. The main button shrinks while pressed and the back arrow dims. Callbacks report the chosen plan and the subscribe tap.

How it's built

A plain JavaScript core holds both themes, the geometry in points, the text table and a scene function that returns a display list for the current state. The React Native component renders that list with react-native-svg for gradients, shapes, icons and stars, and with Image and Pressable for the photos and laurel. The outline cross-fade is a short requestAnimationFrame loop with an ease-out curve, so there are no native modules beyond SVG. Text is placed by baseline, with per-string letter-spacing compensation for iOS font behavior. The screen is laid out at 393 by 852 points and scaled to the window width.

Good for

  • Weekly versus yearly subscription offers in a health or fitness app
  • A dark and light paywall driven by one theme prop
  • A starting layout for any two-plan pricing choice with a highlighted best-value option

Dependencies

react-native-svgreact-native

Tags

AvatarBadgeButtonCardCrossfadeDark ModeGlowGradientHealth and FitnessIconLight ModeMinimalPaywallPress FeedbackProfile ScreenProgress BarSpring PhysicsState Transition

Related