Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

At Open Sauce, a Meta engineer described how Yoga was built (flex layout for React Native) After a sweaty 24h, I've recreated CSS Grid using the same technique! bun add minicssgrid 14KB (no deps) MIT

53,793 Aufrufe • vor 1 Jahr •via X (Twitter)

0 Kommentare

Keine Kommentare verfügbar

Kommentare vom Original-Post werden hier angezeigt

Ähnliche Videos

React Native now has its own shadcn/ui equivalent — introducing 𝗡𝗮𝘁𝗶𝘃𝗲𝗨𝗜. If you love the flexibility of copying customisable components directly into your project (avoiding heavy, dependency-laden packages), NativeUI is designed for you. 𝗡𝗮𝘁𝗶𝘃𝗲𝗨𝗜 offers beautifully crafted, accessible components tailored for React Native, following the same copy-paste philosophy as shadcn/ui. Built with 𝗡𝗮𝘁𝗶𝘃𝗲𝗪𝗶𝗻𝗱 for fast, declarative, and flexible styling optimised for React Native. ➡️ 𝗖𝗼𝗽𝘆 𝗰𝗼𝗺𝗽𝗼𝗻𝗲𝗻𝘁 𝗰𝗼𝗱𝗲 𝗱𝗶𝗿𝗲𝗰𝘁𝗹𝘆 𝗶𝗻𝘁𝗼 𝘆𝗼𝘂𝗿 𝗽𝗿𝗼𝗷𝗲𝗰𝘁 — no black-box dependencies required. ➡️ 𝗖𝗼𝗺𝗽𝗼𝗻𝗲𝗻𝘁𝘀 𝗮𝗿𝗲 𝗮𝗰𝗰𝗲𝘀𝘀𝗶𝗯𝗹𝗲 𝗯𝘆 𝗱𝗲𝗳𝗮𝘂𝗹𝘁, supporting screen readers and keyboard navigation, and designed to align with native iOS and Android UX patterns. ➡️ 𝗙𝘂𝗹𝗹 𝗰𝗼𝗻𝘁𝗿𝗼𝗹 𝗼𝘃𝗲𝗿 𝘆𝗼𝘂𝗿 𝗨𝗜 without rebuilding common elements like buttons, inputs, or sliders from scratch. ➡️ 𝗖𝗼𝗺𝗽𝗮𝘁𝗶𝗯𝗹𝗲 𝘄𝗶𝘁𝗵 𝗘𝘅𝗽𝗼 𝗮𝗻𝗱 𝘃𝗮𝗻𝗶𝗹𝗹𝗮 𝗥𝗲𝗮𝗰𝘁 𝗡𝗮𝘁𝗶𝘃𝗲 𝗽𝗿𝗼𝗷𝗲𝗰𝘁𝘀, but not yet integrated with Tamagui’s styling system (future support may be planned). ➡️ 𝗦𝘂𝗽𝗽𝗼𝗿𝘁𝘀 𝘁𝗵𝗲𝗺𝗶𝗻𝗴 𝘃𝗶𝗮 𝗡𝗮𝘁𝗶𝘃𝗲𝗪𝗶𝗻𝗱 — though you’ll need to wire it up manually using Tailwind variables, context providers, and config files. Note: The term “install” in the documentation refers to using the shadcn CLI (e.g., npx shadcn@latest add component) to fetch and copy component code into your project, not adding a package to your dependencies. NativeUI isn’t a plug-and-play library; it’s a lightweight toolbox that empowers you to shape your UI with precision and control. 𝗪𝗵𝗮𝘁’𝘀 𝘆𝗼𝘂𝗿 𝗽𝗿𝗲𝗳𝗲𝗿𝗲𝗻𝗰𝗲: npm install a pre-built UI kit for speed, or copy/paste NativeUI components for ultimate customisation? #ReactNative #KeyboardUX #MobileDev #OpenSource #JSDev #Performance #iOSDev #KeyboardExtensions #ReactNativeKeyboard #UIUX #shadcn #nativeui

The React Native Rewind

118,542 Aufrufe • vor 1 Jahr

004/100 Buttons. A bit of the process on building an animation. When looking at a finished animation or in this example a finished button, it can look quite complex inside the CSS. But when building it, it’s more like a lot of simple steps, one after another. Here I had the idea to make some kind of text animation like the footer logo on the Osmo site. I try to add the base animation with no complex easing, for example transition: translate 0.4s ease. Starting with just moving the one text from bottom to top and the other text to top. Adding a stagger, play around with it. Searching for a way to make it more circular. On the research I found the sin() function inside CSS which can build a more smooth non linear curve for the stagger which creates this circular effect. And step by step adding more complexity like, different easing for hover/hover-out, opacity, 3D transform and more. I use also the sin() function to rotate the letters, so the middle ones are getting more rotated than the outer ones. Another thing which helps is to add a small delay on hover, for example 0.05s or 0.1s, you don’t really see the difference, but when you hover pretty fast on and out it doesn’t get that jumpy. I’m using here GSAP’s SplitText to split every char into spans. And then I’m adding a CSS index variable to every span, starting from the center. SplitText can provide CSS index variables, but you cannot tell it from which direction. For the sin() it’s also important to have a max length, so I add another CSS variable with the max char number on it. Crafting 100 Buttons with Osmo ⏳ Total time: 63h

Eduard Bodak

166,023 Aufrufe • vor 4 Monaten

A 19 year old Chinese student controls an AI security system from his bed through Telegram. Types one message on his phone, the device across the room wakes up, starts watching and reports back to him like an employee. While American companies charge $100 for a Ring camera plus $4 a month for cloud, this kid spent $10 once and built something smarter. He sent a Telegram message: open maixcam and notify me if a person detected. One second later his phone buzzed back. Green checkmark. Status: Active. Monitoring: Person detection enabled. Notifications: Telegram ready. His roommate laughed. Said a $10 device can't do real security. Then someone walked past the door. The phone buzzed instantly. Person detected. Class: person. Confidence: 92.00%. Position: (120, 80). Size: 100x150. Not a blurry photo 45 seconds later like Amazon cameras. Exact data in under 1 second. What it saw, how sure it is, where the person is standing, how big they are. All through a Telegram message. He built the whole thing with Claude Code in one weekend. The AI runs directly on the device, no cloud, no subscription, no internet needed after setup. 10MB of memory. Boots in 1 second. Camera sees, chip thinks, Telegram delivers. Posted a 17 second demo. GitHub exploded. 7,400 stars in 2 days. But person detection was just the demo. A developer in Tokyo forked it and pointed it at his front door. Telegram alert with a photo every time a delivery arrives. A mom in Seoul pointed it at her baby's crib. Gets a message when the baby stands up. A business owner in Shenzhen bought 6 for $60 total, mounted them around his warehouse and replaced a $200 a month security service. His entire security system is now a Telegram group chat with 6 AI cameras. Someone commented under the GitHub repo: I'm a senior engineer at a home security company. We have a team of 8 working on person detection. This 19 year old did it alone with Claude Code on a $10 device and it works better than our product. The student isn't a machine learning engineer. He's a second year CS student who wanted to know when his roommate eats his snacks. Claude Code wrote the detection model, the Telegram bot, the alert system and the boot sequence. He just described what he wanted. The roommate who laughed now has one pointed at his own shelf. Same device, same code, same Telegram bot. He stops losing snacks. The student stops losing sleep. Everyone is paying $100 for smart cameras with $4 monthly subscriptions. China is building the same thing for $10 with a Telegram chat and Claude Code. 7,400 stars. One weekend. One student who asked Claude Code to watch his door and accidentally built something better than Ring.

Marlow

23,453 Aufrufe • vor 4 Monaten

Started using React Native two days ago and immediately fell down a tab-bar rabbit hole. I’d seen Instagram and Revolut collapse their tab bars on scroll while keeping every icon visible. I wanted that without giving up real iOS Liquid Glass. Turns out iOS 26’s public API can’t express that state. UITabBarMinimizeBehavior is an enum of when, not what. With onScrollDown, UIKit minimizes the bar to the active tab alone. There’s no parameter controlling what survives. So most implementations rebuild the visible bar as a custom component. Some use genuine glass materials, but the real UITabBar is gone and with it, the native selection capsule: that little blob that moves like a drop of water between tabs. You can reproduce it with separate springs on the leading and trailing edges. I didn’t want a reproduction. I wanted UIKit’s. Then I remembered a Flutter app i built some months back which uses cupertino_native. Flutter runs the app while a platform-view bridge renders a real UIKit UITabBar. Finding expo-glass-tabs clarified the compact geometry I wanted. The two ideas clicked: why not bridge a real UITabBar into React Native? Here’s the trick: a standalone UITabBar has no UITabBarController managing it, so Apple’s minimization rule never applies. That means I can control its frame and items myself. Expo Router still owns navigation and screen lifecycle. React Native detects scroll direction. Swift removes and restores the real item labels, recentres the icons and animates the native bar’s size. All five icons remain visible. The result keeps Apple’s Liquid Glass, water-drop capsule, hit testing and accessibility, while adding a compact state its public API doesn’t provide. One gotcha tho: detaching the bar means reimplementing everything the controller previously gave you for free. Active-tab reselect scrolling was one example

kelvin.dart

67,945 Aufrufe • vor 1 Monat

Hold up, here is the prompt: works with almost any model. enjoy :) Role & Objective: Act as an Elite UI/UX Front-End Engineer specializing in Apple-tier micro-interactions and advanced CSS. Your task is to program a perfectly centered navigation bar in a strictly SINGLE HTML file containing all HTML, vanilla CSS, and vanilla JavaScript. No external libraries or frameworks (No Tailwind, React, etc.). Design Concept - "True Liquid Glass": CRITICAL INSTRUCTION: Do NOT generate standard, flat "glassmorphism" or basic frosted glass. I require a physically accurate "Liquid Glass" aesthetic. It must look like wet, poured clear resin, combining the high-gloss specular highlights of classic macOS Aqua with the volumetric spatial depth of modern Apple VisionOS. 1. The Liquid Glass Material & Lighting (CSS): - Deep Refraction: Use `backdrop-filter` with extreme blur (e.g., 50px) and over-saturation (200%). - Specular Highlight: Create a curved, semi-transparent white gradient on the top half using a pseudo-element (`::before`) to simulate a hard light reflection on a wet, rounded 3D surface. - Caustics & Volume: Use multi-layered inner and outer `box-shadow` properties to simulate light refracting at the bottom edge and casting a realistic ambient drop shadow. - Interactive Glare: Implement a soft radial-gradient spotlight inside the glass that dynamically tracks the user's mouse cursor (X/Y coordinates) using JavaScript and CSS variables (`mix-blend-mode: overlay`). 2. Navigation Layout & Elements: - Center the pill-shaped navigation bar perfectly in the middle of the viewport. - Include 3 main navigation items with minimalist, inline SVG stroke icons and text labels: "Home", "Call", and "List". - Add a subtle vertical divider line after the main buttons. - Next to the divider, add a Dark/Light Mode toggle button containing inline SVG Sun and Moon icons. 3. Animations & "Apple Magic": - Sliding Active Pill: Create a solid background "pill" that sits *behind* the active navigation item's text/icon. When a different item is clicked, this pill must dynamically recalculate its width and slide to the new position. - Spring Physics: The sliding transition MUST use an exact Apple-style bouncy spring easing curve (e.g., `transition: all 0.5s cubic-bezier(0.34, 1.2, 0.64, 1)`). - Tactile Feedback: Buttons and icons must physically press down slightly (`transform: scale(0.92)`) when clicked (`:active`). - Theme Switch: The Sun and Moon icons must smoothly rotate, scale, and cross-fade during the transition. 4. Background Environment (Crucial): - Glass needs light and color to refract! Create a full-viewport, smoothly animated mesh gradient background using 3 large, heavily blurred, floating color blobs. - Implement full Dark/Light mode logic using CSS variables (`:root` and `[data-theme="dark"]`). Toggling the theme must seamlessly transition the background blob colors, glass opacity, shadow intensity, and text colors. Output ONLY the pristine, production-ready code. Prioritize maximum visual fidelity and silky-smooth 60fps animations.

Leon Lin

128,501 Aufrufe • vor 5 Monaten

Created this by using a movement sheet as a reference image to animate the dance using Seedance 2.0 + ChatGPT image 2.0 on Yapper GPT Image 2.0 Prompt: Dance Sequence Instruction Sheet [VISUAL STYLE] A composition featuring a highly detailed 3D-rendered female dancer. Designed like a professional choreography guide with a technical, diagram-inspired layout. Clean white background, soft studio lighting, and strong contrast to highlight body movement and posture. [GRID LAYOUT] Structured 4×4 panel grid (16 frames total), evenly spaced with thin black divider lines. Each panel is identical in size and clearly numbered from 1 to 16 to show a continuous dance progression. [CHARACTER] Use image1 as the base character. The same female dancer appears consistently across all panels with accurate likeness and proportions. [WARDROBE] The dancer wears a stylish, performance-ready outfit: a well-fitted top paired with a short, flowy skirt. The look should feel modern and visually appealing while still practical for dance movement. Fabric should subtly respond to motion (slight flow and folds), even in grayscale. [PANEL STRUCTURE – EACH FRAME] Top-left: Step number + short dance move title (e.g., “Step 5 – Spin Transition”) Center: Full-body pose capturing a precise moment in the choreography Bottom-left: 3–4 lines of concise instruction describing the move Overlay: Motion arrows and directional guides illustrating how the dancer transitions [MOTION INDICATORS] Incorporate curved arrows for fluid motion, straight arrows for directional steps, and circular indicators for spins or turns. Emphasize rhythm, weight shifts, and body isolation. [RENDER QUALITY] High-detail sculpted 3D style with smooth grayscale shading, subtle shadows, and clean linework. Maintain a polished, concept-art level finish with clarity in every pose. [RESTRICTIONS] No color, no background scenery, no extra characters, no visual clutter, only the dancer and instructional elements.

Johnn

54,913 Aufrufe • vor 4 Monaten

GPT Image 2 + Seedance 2.0 on OpenArt Prompt: Create a professional production storyboard sheet for a cinematic Japanese cooking video. Format: A wide horizontal storyboard layout, 16:9 aspect ratio, arranged in a clean 3x3 grid with 9 panels total. Thin black borders separating each frame. Warm parchment/off-white background like a printed production board. At the top center, add the title: JAPANESE BEEF BOWL — Production Storyboard Each panel should have a small white label box in the top-left corner with the panel number in brackets: [1], [2], [3], etc. Under each panel, add a short italic serif caption starting with a two-digit number and an em dash. Visual style: High-end cinematic food photography, warm rustic Japanese kitchen, moody amber lighting, shallow depth of field, steam, dark wooden table, handmade ceramic bowls, old kitchen tools in the background, realistic textures, glossy sauce, appetizing food details, premium commercial cooking video look. Storyboard panels: [1] Close-up of hands slicing raw beef into thick bite-sized pieces on a worn wooden cutting board with a large chef's knife. Caption: 01 — Slice beef into bite-sized pieces. [2] Close-up of beef pieces searing in a black cast-iron pan, caramelized golden-brown edges, sizzling oil, steam rising, chopsticks turning one piece. Caption: 02 — Sear beef until browned. [3] Close-up of soy sauce being poured from a small ceramic cup into the hot pan, dark sauce bubbling around the beef, steam filling the frame. Caption: 03 — Add soy sauce to the pan. [4] Beef pieces simmering in a thick glossy sauce, chopsticks lifting a glazed piece, sauce bubbling heavily in the pan. Caption: 04 — Simmer beef in the sauce. [5] A wooden rice paddle scooping freshly steamed white rice into a large handmade ceramic bowl. Caption: 05 — Scoop steamed rice into bowl. [6] Thick Japanese-style savory sauce being poured over the mound of white rice in the ceramic bowl, glossy dark sauce spreading over the rice. Caption: 06 — Drizzle sauce over rice. [7] Glazed beef slices being placed carefully over the rice with chopsticks, close-up, rich caramelized shine. Caption: 07 — Arrange glazed beef over rice. [8] Finished bowl being assembled with green onions, soft-boiled egg halves, pickled ginger, sesame seeds, and fresh vegetables around the beef. Caption: 08 — Add vegetables, egg, and garnish. [9] Final hero shot of the completed Japanese beef bowl on a rustic wooden table, glossy beef, golden egg yolks, steam rising, hands resting near the bowl, cinematic food commercial look. Caption: 09 — Completed beef bowl, hero shot. Make the entire storyboard feel like a polished production planning sheet for a premium Japanese beef bowl commercial. Keep every panel realistic, cinematic, warm, detailed, and consistent in lighting, color palette, kitchen environment, and bowl design. Video Prompt: CRITICAL INSTRUCTION: The reference image contains a 9-step chronological cooking storyboard for a Japanese Beef Bowl. Animate the chef seamlessly through these exact 9 steps in order. Start at Step 1 (Slice raw beef into bite-sized pieces), flow into Step 2 (Sear beef until browned), then Step 3 (Add soy sauce to the pan). Continue through Step 4 (Simmer beef in the sauce), Step 5 (Scoop steamed rice into bowl), Step 6 (Drizzle sauce over rice), Step 7 (Arrange glazed beef over rice), Step 8 (Add vegetables, egg, and garnish), finishing on Step 9 (Completed beef bowl hero shot). Prioritize the strict sequence of actions. No music. No subtitles. Location: Traditional Japanese kitchen. 15 seconds, 16:9, realistic, cinematic, appetizing, natural camera movement. Warm moody lighting, shallow depth of field, rich steam, glossy sauce, premium food commercial quality.

Zara

20,166 Aufrufe • vor 2 Monaten