Right now, Xingkong Aerospace is maintaining a terrifying launch frequency.

Furthermore, they frequently broadcast live streams, causing many media outlets and the general public to lose much of their sense of novelty regarding Xingkong Aerospace launching rockets.

Especially since last year, ever since the offshore recovery technology for xingtu-1 has also tended to mature and stabilize.

Commercial launches of all sizes, payload test flights, and rocket body iterative tests have followed one after another.

In the entire year of 2017 alone, Xingkong Aerospace carried out dozens of various launch missions.

Every few days, one could see a rocket launch from Xingkong Aerospace.

It can even be said that the launch volume of Xingkong Aerospace alone crushes all global space agencies and commercial aerospace enterprises.

The number of launches ranks first in the world.

Meanwhile, the side effects brought by this ultra-high-density launch are also particularly obvious.

That is, both the public and the media have fallen into aesthetic fatigue regarding Xingkong Aerospace's rocket launches.

Even routine commercial satellite launches by Xingkong Aerospace? Their news value is close to zero.

Even if Xingkong Aerospace's small test rocket loses control and explodes during a test flight?

Netizens are already blase about these things, sometimes failing even to touch the threshold of trending searches.

Even the maritime vertical recovery that shocked the world last year has gradually devolved into what audiences call a "routine operation".

Ever since that operation by Xingkong Aerospace last year, nearly a full year has passed.

Nowadays, it is already very difficult for Xingkong Aerospace to produce explosive news points that detonate globally.

Even major media outlets no longer arrange for reporters to be permanently stationed in Xingkong Aerospace's launch waters.

When many ordinary netizens mention Xingkong Aerospace's rocket launches, mostly all that remains is the phrase, "Oh, they're heading to the sky again?!"

Until Xingkong Aerospace announced that they are about to initiate their first crewed spaceflight.

As soon as this news was announced.

The world's attention once again focused on Xingkong Aerospace.

Although crewed spaceflight has long since been realized.

However, until now, not a single private enterprise has ever achieved crewed spaceflight.

At this time, Xingkong Aerospace chose to be the first to take the plunge.

Then, whether successful or failed, it is definitely a piece of big news.

...

Time quickly arrived at October 10th.

Which is the day of Xingkong Aerospace's first crewed rocket launch.

The sea breeze blew over across dozens of kilometers of coastline.

Meanwhile, the silver-white xingtu-2 carrier rocket stood steadily on the number three fixed launch pad of Xingkong Aerospace's exclusive launch base.

The blue logo of "Xingkong Aerospace" on the rocket body was particularly eye-catching under the sunlight.

Now, only three hours remain until the crewed maiden flight launch window.

And at this moment, global live broadcast channels have long since opened.

Tens of millions of viewers flooded into the live broadcast room.

The comment section was also divided into two completely different voices.

Although the broadcast had only started for ten minutes.

However, the number of online viewers in the live broadcast room had already broken through eleven million.

And the bullet comments have never stopped since the broadcast began.

"Hiss, I remember last month the Russians' Soyuz crewed rocket just blew up, right?

Their astronauts barely escaped with their lives.

How dare Xingkong Aerospace, a private enterprise, stuff living people up there?"

"Exactly, crewed spaceflight is no child's play; once something goes wrong, people will really die!"

"Damn it, I don't know if Xingkong Aerospace is confident or conceited. Looking globally at crewed spaceflight, only those few major countries dare to play with it.

Since when has a private enterprise dared to touch this stuff!"

"I admit that Xingkong Aerospace is indeed awesome when it comes to rocket recovery, but crewed spaceflight is no joke."

"I wonder if this time Xingkong Aerospace is doing crewed spaceflight or gambling-with-lives spaceflight?"

"Ahhh, please, I hope Xingkong Aerospace can succeed this time, and absolutely don't weld the four characters 'Rise of Domestic Products' onto the coffin lid!"

"Damn it, Jiang Huaixing is really making things bigger and bigger, daring to mess with anything.

From manufacturing mobile phones, manufacturing cars, to rocket recovery.

And now he has directly started working on crewed rockets?

Then shouldn't his next step be to officially announce the creation of a warp engine?

Taking such a huge step, aren't you afraid of pulling something?

Xingkong Aerospace has only been established for a few years, yet they dare to pull this off! It's too terrifying!"

"Don't overturn, President Jiang, if this thing blows up.

I can already imagine that in the next few years, the internet trolls will probably be full of mocking words against Xingkong Aerospace.

All the accumulated achievements from before, like the forty-two satellites on a single rocket and rocket recovery, will probably be wiped out overnight."

"Damn it, the fault-tolerance rate for crewed spaceflight is close to zero.

Even those national teams spent decades enduring before they dared to steadily send people up.

Now Xingkong Aerospace actually dares to assemble a rocket body using automotive-grade chips and parts and put people on it?

To be honest, I am also an old space fan, and for so many years this is the first time I've seen such a setup.

Now, whenever I see the words 'automotive-grade on a crewed rocket', my back feels cold.

What the hell kind of launch is this, it's simply gambling with lives!"

"Not only that, Xingkong Aerospace is doing an unprecedented crewed flight with a recovered rocket this time!"

"This damn thing is even more terrifying, okay? Crewed flight with a recovered rocket currently has zero cases globally, the risk is maxed straight out, okay!"

"I feel that Xingkong Aerospace is still too hasty; wouldn't it be better to be safer?

Wouldn't it be fine to do dozens or hundreds of unmanned heavy-load tests first, and then come to crewed flight?

How long has it been, I feel like Xingkong Aerospace has been blinded by success, this time they are purely gambling with luck."

"Really, if xingtu-2 falls apart today, and at the same time, the escape tower can't pull them back, it will truly become a textbook-level international joke."

"Alas, the foreign internet is mocking them, saying that Xingkong Aerospace is just a company where marketing outweighs substance."

"Mainly because SpaceAKS hasn't even engaged in crewed spaceflight yet, I don't know what Xingkong Aerospace is rushing for!"

"Exactly, obviously Xingkong Aerospace's recovery technology is more mature than SpaceAKS, or rather more mature than all global space agencies, there's no need to rush into crewed spaceflight!"

"Who knows what they're thinking!"

"I just don't understand, can't everyone have a little confidence in Xingkong Aerospace?"

"That's right, you guys talk as if Xingkong Aerospace were a bunch of fraudsters."

"I don't know what you guys are thinking; last year Xingkong Aerospace completed forty-two satellites on a single rocket while perfectly executing marine recovery, and these are all solid facts.

This wasn't typed out on a keyboard, can't you have a bit more confidence in Xingkong Aerospace?!"

"That's right, when it comes to algorithms and precision, Xingkong Aerospace is second to none globally. Aren't these enough?"

"Right, the national team is indeed the main force in this aspect, but must private enterprises necessarily fail?!"

"Heh, these people are used to casting gloom.

Back in the day, wasn't our country's rocket also blasted as industrial garbage before it succeeded?

And now isn't it steady as a rock."

"That's right, I believe in Xingkong Aerospace; three hours later xingtu-2 will successfully enter orbit.

By then, certain people's faces will definitely be swollen wider than a rocket fairing."】} ```currentIndex += 1; // Increment the current index so we don't infinitely process the same card. } return ( // Render the app shell and whatever card is currently at the top of the stack. <View style={styles.container}> <Animated.View {...panResponder.panHandlers} style={【styles.cardStyle, { transform: 【{ translateX: pan.x }, { translateY: pan.y }】 }】} > {renderCard(currentItem)} </Animated.View> </View> ); ``` Here is where the magic happens: - We take the *current* item from the array (based on `currentIndex`). - We attach our `panHandlers` to the `Animated.View` wrapping the card. - We bind the `transform` style property to the `pan.x` and `pan.y` values. As the user drags their finger around, `pan.x` and `pan.y` update automatically, moving the card in real-time. When the user lets go, our `onPanResponderRelease` logic checks if the drag distance crossed our threshold, animates the card off-screen if successful (or back to `0,0` if not), and increments `currentIndex` to reveal the next card underneath. --- ### Wrapping Up and Next Steps And there you have it! You've built a Tinder-style swipeable card stack completely from scratch using React Native's core `Animated` library and `PanResponder`. While this implementation is robust and great for learning how gestures and animations work under the hood, real-world apps often require a bit more polish—such as rendering multiple cards in a stack (so users can peek at the card underneath), handling card rotations during drags, or adding buttons as alternative triggers. If you want to skip writing all the gesture handling boilerplate yourself, libraries like `react-native-deck-swiper` or `react-native-card-stack-swiper` abstract a lot of this complexity away. However, understanding `PanResponder` and `Animated` will give you superpowers for building custom gesture-driven interactions far beyond simple card swipes. Happy coding! Let me know in the comments if you run into any issues or want to see a follow-up on how to stack multiple cards with depth scaling!</div></section><div class=

></div><footer class=

><div class=

><p>Copyright © 2025. All Rights Reserved.</p></div></footer></div></body></html></div></div></div></div></body></html>');background-size:cover;background-position:center;color:#333;font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;line-height:1.6;padding:20px}.wrapper{max-width:800px;margin:0 auto;background:#fff;padding:40px;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,0.1)} h1{color:#1a73e8;font-size:2.5em;margin-bottom:10px} h2{color:#333;font-size:1.8em;margin-top:30px;border-bottom:2px solid #eee;padding-bottom:8px} p{margin-bottom:20px;font-size:1.1em} pre{background:#f8f9fa;padding:15px;border-radius:6px;overflow-x:auto;border-left:4px solid #1a73e8;margin-bottom:20px} code{font-family:'Courier New', Courier, monospace;font-size:0.95em} ul,ol{margin-bottom:20px;padding-left:20px} li{margin-bottom:8px;font-size:1.1em}.footer{margin-top:40px;text-align:center;color:#777;font-size:0.9em;border-top:1px solid #eee;padding-top:20px}</style></head><body><div class=

><div class=

><div class=

><div class=

><header class=

><h1 class=

>Building a Tinder-Style Swipeable Card Interface in React Native from Scratch</h1></header><section class=

><div class=

><p>Swipeable card interfaces—popularized by apps like Tinder—have become a staple of modern mobile UX. They offer an intuitive, gamified way for users to process information one item at a time with simple left or right gestures.</p> <p>While third-party libraries exist, building a swipeable card stack from scratch in React Native is a fantastic way to master two of the framework's most powerful native primitives: <strong>PanResponder</strong> and the <strong>Animated API</strong>.</p> <p>In this tutorial, we'll walk through building a fluid, responsive Tinder-style card stack completely from scratch, with no external UI component libraries required.</p> <hr /> <h2>The Core Concepts</h2> <p>Before diving into code, let's break down the two main tools we'll be using:</p> <ol> <li><strong>PanResponder:</strong> Bridges the gap between raw touch events (press, move, release) and your JavaScript components. It tracks gestures like dragging and flinging across the screen.</li> <li><strong>Animated API:</strong> Allows you to create performant, butter-smooth animations by running calculations natively on the UI thread rather than the JavaScript thread.</li> </ol> <hr /> <h2>Step 1: Setting Up the State and Animated Values</h2> <p>First, we need to set up our component state to track which card is currently at the top of the stack, and initialize our <code>Animated.ValueXY</code> to track the x and y coordinates of our dragging gesture.</p> <pre><code>import React, { useState, useRef } from 'react';import { StyleSheet, View, Text, Animated, PanResponder, Dimensions } from 'react-native'; const SCREEN_WIDTH = Dimensions.get('window').width; export default function SwipeableDeck({ data, renderCard }) { const 【currentIndex, setCurrentIndex】 = useState(0); const pan = useRef(new Animated.ValueXY()).current; //... we'll add PanResponder here</code></pre> <h2>Step 2: Configuring PanResponder</h2> <p>Next, we configure our <code>PanResponder</code> to listen to touch movements. When a user drags the card, we update our `pan` animated values. When they release the card, we check how far they dragged it. If they crossed a certain threshold, we animate the card flying off the screen. Otherwise, we snap it back to the center.</p> <pre><code> const panResponder = useRef( PanResponder.create({ onStartShouldSetPanResponder: () => true, onPanResponderMove: Animated.event( 【 null, { dx: pan.x, dy: pan.y } // Bind touch movement to pan x and y 】, { useNativeDriver: false } ), onPanResponderRelease: (e, gestureState) => { if (gestureState.dx > 120) { // Swiped Right forceSwipe('right'); } else if (gestureState.dx < -120) { // Swiped Left forceSwipe('left'); } else { // Return to center resetPosition(); } } }) ).current; </code></pre> <h2>Step 3: Handling Swipe Actions and Resets</h2> <p>Let's define the helper functions <code>forceSwipe</code> and <code>resetPosition</code> using React Native's <code>Animated.timing</code>.</p> <pre><code> const forceSwipe = (direction) => { const x = direction === 'right'? SCREEN_WIDTH: -SCREEN_WIDTH; Animated.timing(pan, { toValue: { x, y: 0 }, duration: 250, useNativeDriver: false }).start(() => onSwipeComplete(direction)); }; const resetPosition = () => { Animated.spring(pan, { toValue: { x: 0, y: 0 }, useNativeDriver: false }).start(); }; const onSwipeComplete = (direction) => { pan.setValue({ x: 0, y: 0 }); // Reset values for the next card setCurrentIndex(prevIndex => prevIndex + 1); }; </code></pre> <h2>Step 4: Putting It All Together in the Render Method</h2> <p>Finally, we link our animated values to the view's transformation styles so the card physically moves on the screen as the user drags it.</p> <pre><code> const currentItem = data【currentIndex】; if (!currentItem) { return ( <View style={styles.noMoreCardsContainer}> <Text>No more cards!</Text> <View> ); } return ( // Render the app shell and whatever card is currently at the top of the stack. <View style={styles.container}> <Animated.View {...panResponder.panHandlers} style={【styles.cardStyle, { transform: 【{ translateX: pan.x }, { translateY: pan.y }】 }】} > {renderCard(currentItem)} </Animated.View> </View> ); </code></pre> <p>Here is where the magic happens:</p> <ul> <li>We take the <em>current</em> item from the array (based on <code>currentIndex</code>).</li> <li>We attach our <code>panHandlers</code> to the <code>Animated.View</code> wrapping the card.</li> <li>We bind the <code>transform</code> style property to the <code>pan.x</code> and <code>pan.y</code> values.</li> </ul> <p>As the user drags their finger around, <code>pan.x</code> and <code>pan.y</code> update automatically, moving the card in real-time. When the user lets go, our <code>onPanResponderRelease</code> logic checks if the drag distance crossed our threshold, animates the card off-screen if successful (or back to <code>0,0</code> if not), and increments <code>currentIndex</code> to reveal the next card underneath.</p> <hr /> <h2>Wrapping Up and Next Steps</h2> <p>And there you have it! You've built a Tinder-style swipeable card stack completely from scratch using React Native's core <code>Animated</code> library and <code>PanResponder</code>.</p> <p>While this implementation is robust and great for learning how gestures and animations work under the hood, real-world apps often require a bit more polish—such as rendering multiple cards in a stack (so users can peek at the card underneath), handling card rotations during drags, or adding buttons as alternative triggers.</p> <p>If you want to skip writing all the gesture handling boilerplate yourself, libraries like <code>react-native-deck-swiper</code> or <code>react-native-card-stack-swiper</code> abstract a lot of this complexity away. However, understanding <code>PanResponder</code> and <code>Animated</code> will give you superpowers for building custom gesture-driven interactions far beyond simple card swipes.</p> <p>Happy coding! Let me know in the comments if you run into any issues or want to see a follow-up on how to stack multiple cards with depth scaling!</p></div></section><footer class=

><div class=

><p>Copyright © 2025. All Rights Reserved.</p></div></footer></div></div></div></div></body></html></code></pre></div><section class=

><div class=

><h2>The Core Concepts</h2><p>Before diving into code, let's break down the two main tools we'll be using:</p><ol><li><strong>PanResponder:</strong> Bridges the gap between raw touch events (press, move, release) and your JavaScript components. It tracks gestures like dragging and flinging across the screen.</li><li><strong>Animated API:</strong> Allows you to create performant, butter-smooth animations by running calculations natively on the UI thread rather than the JavaScript thread.</li></ol></div></section><section class=

><div class=

><h2>Step 1: Setting Up the State and Animated Values</h2><p>First, we need to set up our component state to track which card is currently at the top of the stack, and initialize our <code>Animated.ValueXY</code> to track the x and y coordinates of our dragging gesture.</p><pre><code>import React, { useState, useRef } from 'react';import { StyleSheet, View, Text, Animated, PanResponder, Dimensions } from 'react-native'; const SCREEN_WIDTH = Dimensions.get('window').width; export default function SwipeableDeck({ data, renderCard }) { const 【currentIndex, setCurrentIndex】 = useState(0); const pan = useRef(new Animated.ValueXY()).current; //... we'll add PanResponder here</code></pre></div></section><section class=

><div class=

><h2>Step 2: Configuring PanResponder</h2><p>Next, we configure our <code>PanResponder</code> to listen to touch movements. When a user drags the card, we update our `pan` animated values. When they release the card, we check how far they dragged it. If they crossed a certain threshold, we animate the card flying off the screen. Otherwise, we snap it back to the center.</p><pre><code> const panResponder = useRef( PanResponder.create({ onStartShouldSetPanResponder: () => true, onPanResponderMove: Animated.event( 【 null, { dx: pan.x, dy: pan.y } // Bind touch movement to pan x and y 】, { useNativeDriver: false } ), onPanResponderRelease: (e, gestureState) => { if (gestureState.dx > 120) { // Swiped Right forceSwipe('right'); } else if (gestureState.dx < -120) { // Swiped Left forceSwipe('left'); } else { // Return to center resetPosition(); } } }) ).current; </code></pre></div></section><section class=

><div class=

><h2>Step 3: Handling Swipe Actions and Resets</h2><p>Let's define the helper functions <code>forceSwipe</code> and <code>resetPosition</code> using React Native's <code>Animated.timing</code>.</p><pre><code> const forceSwipe = (direction) => { const x = direction === 'right'? SCREEN_WIDTH: -SCREEN_WIDTH; Animated.timing(pan, { toValue: { x, y: 0 }, duration: 250, useNativeDriver: false }).start(() => onSwipeComplete(direction)); }; const resetPosition = () => { Animated.spring(pan, { toValue: { x: 0, y: 0 }, useNativeDriver: false }).start(); }; const onSwipeComplete = (direction) => { pan.setValue({ x: 0, y: 0 }); // Reset values for the next card setCurrentIndex(prevIndex => prevIndex + 1); }; </code></pre></div></section><section class=

><div class=

><h2>Step 4: Putting It All Together in the Render Method</h2><p>Finally, we link our animated values to the view's transformation styles so the card physically moves on the screen as the user drags it.</p><pre><code> const currentItem = data【currentIndex】; if (!currentItem) { return ( <View style={styles.noMoreCardsContainer}> <Text>No more cards!</Text> <View> ); } return ( // Render the app shell and whatever card is currently at the top of the stack. <View style={styles.container}> <Animated.View {...panResponder.panHandlers} style={【styles.cardStyle, { transform: 【{ translateX: pan.x }, { translateY: pan.y }】 }】} > {renderCard(currentItem)} </Animated.View> </View> ); </code></pre><p>Here is where the magic happens:</p><ul><li>We take the <em>current</em> item from the array (based on <code>currentIndex</code>).</li><li>We attach our <code>panHandlers</code> to the <code>Animated.View</code> wrapping the card.</li><li>We bind the <code>transform</code> style property to the <code>pan.x</code> and <code>pan.y</code> values.</li></ul><p>As the user drags their finger around, <code>pan.x</code> and <code>pan.y</code> update automatically, moving the card in real-time. When the user lets go, our <code>onPanResponderRelease</code> logic checks if the drag distance crossed our threshold, animates the card off-screen if successful (or back to <code>0,0</code> if not), and increments <code>currentIndex</code> to reveal the next card underneath.</p></div></section><section class=

><div class=

><h2>Wrapping Up and Next Steps</h2><p>And there you have it! You've built a Tinder-style swipeable card stack completely from scratch using React Native's core <code>Animated</code> library and <code>PanResponder</code>.</p><p>While this implementation is robust and great for learning how gestures and animations work under the hood, real-world apps often require a bit more polish—such as rendering multiple cards in a stack (so users can peek at the card underneath), handling card rotations during drags, or adding buttons as alternative triggers.</p><p>If you want to skip writing all the gesture handling boilerplate yourself, libraries like <code>react-native-deck-swiper</code> or <code>react-native-card-stack-swiper</code> abstract a lot of this complexity away. However, understanding <code>PanResponder</code> and <code>Animated</code> will give you superpowers for building custom gesture-driven interactions far beyond simple card swipes.</p><p>Happy coding! Let me know in the comments if you run into any issues or want to see a follow-up on how to stack multiple cards with depth scaling!</p></div></section><footer class=

><div class=

><p>Copyright © 2025. All Rights Reserved.</p></div></footer></div></div></div></div></body></html></code></pre></div><section class=

><div class=

><h1 class=

>Building a Tinder-Style Swipeable Card Interface in React Native from Scratch</h1></div></section><section class=

><div class=

><p class=

>Swipeable card interfaces—popularized by apps like Tinder—have become a staple of modern mobile UX. They offer an intuitive, gamified way for users to process information one item at a time with simple left or right gestures.</p><p class=

>While third-party libraries exist, building a swipeable card stack from scratch in React Native is a fantastic way to master two of the framework's most powerful native primitives: <strong>PanResponder</strong> and the <strong>Animated API</strong>.</p><p class=

>In this tutorial, we'll walk through building a fluid, responsive Tinder-style card stack completely from scratch, with no external UI component libraries required.</p></div></section><section class=

><div class=

><h2 class=

>The Core Concepts</h2></div></section><section class=

><div class=

><p class=

>Before diving into code, let's break down the two main tools we'll be using:</p><ol class=

><li class=

><strong class=

>PanResponder:</strong> Bridges the gap between raw touch events (press, move, release) and your JavaScript components. It tracks gestures like dragging and flinging across the screen.</li><li class=

><strong class=

>Animated API:</strong> Allows you to create performant, butter-smooth animations by running calculations natively on the UI thread rather than the JavaScript thread.</li></ol></div></section><section class=

><div class=

><h2 class=

>Step 1: Setting Up the State and Animated Values</h2></div></section><section class=

><div class=

><p class=

>First, we need to set up our component state to track which card is currently at the top of the stack, and initialize our <code class=

>Animated.ValueXY</code> to track the x and y coordinates of our dragging gesture.</p></div></section><section class=

><div class=

><pre class=

><code class=

>import React, { useState, useRef } from 'react';import { StyleSheet, View, Text, Animated, PanResponder, Dimensions } from 'react-native'; const SCREEN_WIDTH = Dimensions.get('window').width; export default function SwipeableDeck({ data, renderCard }) { const 【currentIndex, setCurrentIndex】 = useState(0); const pan = useRef(new Animated.ValueXY()).current; //... we'll add PanResponder here</code></pre></div></section><section class=

><div class=

><h2 class=

>Step 2: Configuring PanResponder</h2></div></section><section class=

><div class=

><p class=

>Next, we configure our <code class=

>PanResponder</code> to listen to touch movements. When a user drags the card, we update our `pan` animated values. When they release the card, we check how far they dragged it. If they crossed a certain threshold, we animate the card flying off the screen. Otherwise, we snap it back to the center.</p></div></section><section class=

><div class=

><pre class=

><code class=

> const panResponder = useRef( PanResponder.create({ onStartShouldSetPanResponder: () => true, onPanResponderMove: Animated.event( 【 null, { dx: pan.x, dy: pan.y } // Bind touch movement to pan x and y 】, { useNativeDriver: false } ), onPanResponderRelease: (e, gestureState) => { if (gestureState.dx > 120) { // Swiped Right forceSwipe('right'); } else if (gestureState.dx < -120) { // Swiped Left forceSwipe('left'); } else { // Return to center resetPosition(); } } }) ).current; </code></pre></div></section><section class=

><div class=

><h2 class=

>Step 3: Handling Swipe Actions and Resets</h2></div></section><section class=

><div class=

><p class=

>Let's define the helper functions <code class=

>forceSwipe</code> and <code class=

>resetPosition</code> using React Native's <code class=

>Animated.timing</code>.</p></div></section><section class=

><div class=

><pre class=

><code class=

> const forceSwipe = (direction) => { const x = direction === 'right'? SCREEN_WIDTH: -SCREEN_WIDTH; Animated.timing(pan, { toValue: { x, y: 0 }, duration: 250, useNativeDriver: false }).start(() => onSwipeComplete(direction)); }; const resetPosition = () => { Animated.spring(pan, { toValue: { x: 0, y: 0 }, useNativeDriver: false }).start(); }; const onSwipeComplete = (direction) => { pan.setValue({ x: 0, y: 0 }); // Reset values for the next card setCurrentIndex(prevIndex => prevIndex + 1); }; </code></pre></div></section><section class=

><div class=

><h2 class=

>Step 4: Putting It All Together in the Render Method</h2></div></section><section class=

><div class=

><p class=

>Finally, we link our animated values to the view's transformation styles so the card physically moves on the screen as the user drags it.</p></div></section><section class=

><div class=

><pre class=

><code class=

> const currentItem = data【currentIndex】; if (!currentItem) { return ( <View style={styles.noMoreCardsContainer}> <Text>No more cards!</Text> <View> ); } return ( // Render the app shell and whatever card is currently at the top of the stack. <View style={styles.container}> <Animated.View {...panResponder.panHandlers} style={【styles.cardStyle, { transform: 【{ translateX: pan.x }, { translateY: pan.y }】 }】} > {renderCard(currentItem)} </Animated.View> </View> ); </code></pre></div></section><section class=

><div class=

><p class=

>Here is where the magic happens:</p></div></section><section class=

><div class=

><ul class=

><li class=

>We take the <em class=

>current</em> item from the array (based on <code class=

>currentIndex</code>).</li><li class=

>We attach our <code class=

>panHandlers</code> to the <code class=

>Animated.View</code> wrapping the card.</li><li class=

>We bind the <code class=

>transform</code> style property to the <code class=

>pan.x</code> and <code class=

>pan.y</code> values.</li></ul></div></section><section class=

><div class=

><p class=

>As the user drags their finger around, <code class=

>pan.x</code> and <code class=

>pan.y</code> update automatically, moving the card in real-time. When the user lets go, our <code class=

>onPanResponderRelease</code> logic checks if the drag distance crossed our threshold, animates the card off-screen if successful (or back to <code class=

>0,0</code> if not), and increments <code class=

>currentIndex</code> to reveal the next card underneath.</p></div></section><section class=

><div class=

><h2 class=

>Wrapping Up and Next Steps</h2></div></section><section class=

><div class=

><p class=

>And there you have it! You've built a Tinder-style swipeable card stack completely from scratch using React Native's core <code class=

>Animated</code> library and <code class=

>PanResponder</code>.</p></div></section><section class=

><div class=

><p class=

>While this implementation is robust and great for learning how gestures and animations work under the hood, real-world apps often require a bit more polish—such as rendering multiple cards in a stack (so users can peek at the card underneath), handling card rotations during drags, or adding buttons as alternative triggers.</p></div></section><section class=

><div class=

><p class=

>If you want to skip writing all the gesture handling boilerplate yourself, libraries like <code class=

>react-native-deck-swiper</code> or <code class=

>react-native-card-stack-swiper</code> abstract a lot of this complexity away. However, understanding <code class=

>PanResponder</code> and <code class=

>Animated</code> will give you superpowers for building custom gesture-driven interactions far beyond simple card swipes.</p></div></section><section class=

><div class=

><p class=

>Happy coding! Let me know in the comments if you run into any issues or want to see a follow-up on how to stack multiple cards with depth scaling!</p></div></section><footer class=

><div class=

><p class=

>Copyright © 2025. All Rights Reserved.</p></div></footer></div></div></div></div></body></html></code></pre></div><section class=

><div class=

><p class=

>Swipeable card interfaces—popularized by apps like Tinder—have become a staple of modern mobile UX. They offer an intuitive, gamified way for users to process information one item at a time with simple left or right gestures.</p></div></section><section class=

><div class=

><p class=

>While third-party libraries exist, building a swipeable card stack from scratch in React Native is a fantastic way to master two of the framework's most powerful native primitives: <strong>PanResponder</strong> and the <strong>Animated API</strong>.</p></div></section><section class=

><div class=

><p class=

>In this tutorial, we'll walk through building a fluid, responsive Tinder-style card stack completely from scratch, with no external UI component libraries required.</p></div></section><section class=

><div class=

><p class=

>Before diving into code, let's break down the two main tools we'll be using:</p></div></section><section class=

><div class=

><ol class=

><li class=

><strong class=

>PanResponder:</strong> Bridges the gap between raw touch events (press, move, release) and your JavaScript components. It tracks gestures like dragging and flinging across the screen.</li><li class=

><strong class=

>Animated API:</strong> Allows you to create performant, butter-smooth animations by running calculations natively on the UI thread rather than the JavaScript thread.</li></ol></div></section><section class=

><div class=

><p class=

>First, we need to set up our component state to track which card is currently at the top of the stack, and initialize our <code class=

>Animated.ValueXY</code> to track the x and y coordinates of our dragging gesture.</p></div></section><section class=

><div class=

><pre class=

><code class=

>import React, { useState, useRef } from 'react';import { StyleSheet, View, Text, Animated, PanResponder, Dimensions } from 'react-native'; const SCREEN_WIDTH = Dimensions.get('window').width; export default function SwipeableDeck({ data, renderCard }) { const 【currentIndex, setCurrentIndex】 = useState(0); const pan = useRef(new Animated.ValueXY()).current; //... we'll add PanResponder here</code></pre></div></section><section class=

><div class=

><p class=

>Next, we configure our <code class=

>PanResponder</code> to listen to touch movements. When a user drags the card, we update our `pan` animated values. When they release the card, we check how far they dragged it. If they crossed a certain threshold, we animate the card flying off the screen. Otherwise, we snap it back to the center.</p></div></section><section class=

><div class=

><pre class=

><code class=

> const panResponder = useRef( PanResponder.create({ onStartShouldSetPanResponder: () => true, onPanResponderMove: Animated.event( 【 null, { dx: pan.x, dy: pan.y } // Bind touch movement to pan x and y 】, { useNativeDriver: false } ), onPanResponderRelease: (e, gestureState) => { if (gestureState.dx > 120) { // Swiped Right forceSwipe('right'); } else if (gestureState.dx < -120) { // Swiped Left forceSwipe('left'); } else { // Return to center resetPosition(); } } }) ).current; </code></pre></div></section><section class=

><div class=

><p class=

>Let's define the helper functions <code class=

>forceSwipe</code> and <code class=

>resetPosition</code> using React Native's <code class=

>Animated.timing</code>.</p></div></section><section class=

><div class=

><pre class=

><code class=

> const forceSwipe = (direction) => { const x = direction === 'right'? SCREEN_WIDTH: -SCREEN_WIDTH; Animated.timing(pan, { toValue: { x, y: 0 }, duration: 250, useNativeDriver: false }).start(() => onSwipeComplete(direction)); }; const resetPosition = () => { Animated.spring(pan, { toValue: { x: 0, y: 0 }, useNativeDriver: false }).start(); }; const onSwipeComplete = (direction) => { pan.setValue({ x: 0, y: 0 }); // Reset values for the next card setCurrentIndex(prevIndex => prevIndex + 1); }; </code></pre></div></section><section class=

><div class=

><p class=

>Finally, we link our animated values to the view's transformation styles so the card physically moves on the screen as the user drags it.</p></div></section><section class=

><div class=

><pre class=

><code class=

> const currentItem = data【currentIndex】; if (!currentItem) { return ( <View style={styles.noMoreCardsContainer}> <Text>No more cards!</Text> <View> ); } return ( // Render the app shell and whatever card is currently at the top of the stack. <View style={styles.container}> <Animated.View {...panResponder.panHandlers} style={【styles.cardStyle, { transform: 【{ translateX: pan.x }, { translateY: pan.y }】 }】} > {renderCard(currentItem)} </Animated.View> </View> ); </code></pre></div></section><section class=

><div class=

><p class=

>Here is where the magic happens:</p></div></section><section class=

><div class=

><p class=

>As the user drags their finger around, <code class=

>pan.x</code> and <code class=

>pan.y</code> update automatically, moving the card in real-time. When the user lets go, our <code class=

>onPanResponderRelease</code> logic checks if the drag distance crossed our threshold, animates the card off-screen if successful (or back to <code class=

>0,0</code> if not), and increments <code class=

>currentIndex</code> to reveal the next card underneath.</p></div></section><section class=

><div class=

><p class=

>And there you have it! You've built a Tinder-style swipeable card stack completely from scratch using React Native's core <code class=

>Animated</code> library and <code class=

>PanResponder</code>.</p></div></section><section class=

><div class=

><p class=

>While this implementation is robust and great for learning how gestures and animations work under the hood, real-world apps often require a bit more polish—such as rendering multiple cards in a stack (so users can peek at the card underneath), handling card rotations during drags, or adding buttons as alternative triggers.</p></div></section><section class=

><div class=

><p class=

>If you want to skip writing all the gesture handling boilerplate yourself, libraries like <code class=

>react-native-deck-swiper</code> or <code class=

>react-native-card-stack-swiper</code> abstract a lot of this complexity away. However, understanding <code class=

>PanResponder</code> and <code class=

>Animated</code> will give you superpowers for building custom gesture-driven interactions far beyond simple card swipes.</p></div></section><section class=

><div class=

><p class=

>Happy coding! Let me know in the comments if you run into any issues or want to see a follow-up on how to stack multiple cards with depth scaling!</p></div></section><footer class=

><div class=

><p class=

>Copyright © 2025. All Rights Reserved.</p></div></footer></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div></div></body></html></div></div></div>}</div></div></div></div></div></body></html></div></div></div><!DOCTYPE html><html><head><style> meta { charset: utf-8; } body { font-family: sans-serif; font-size: 16px; margin: 40px; } p { color: #444; } h1 { font-size: 1.2em; font-weight: bold; }.data { font-family: monospace; font-size: 1.1em; background: #f5f5f5; padding: 8px 12px; margin: 6px 0; border-radius: 4px; } </style></head><body><h1>Data fetched!</h1><p>Here is the data from the API:</p><div class=

>{

:

}</div></body></html>`}}】}】,

:

}】,

:

}}】,

:

}}】}】;}));}())}}());})();</script></body></html><script>window.parent.postMessage({ action:

}, '*');</script></body></html><script>window.parent.postMessage({ action:

}, '*');</script></body></html><!DOCTYPE html><html><head><meta charset=

utf-8

);

font-family: sans-serif;

font-size: 16px;

margin: 40px;

}

p {

color: #444;

}

h1 {

font-size: 1.2em;

font-weight: bold;

}

.data {

font-family: monospace;

font-size: 1.1em;

background: #f5f5f5;

padding: 8px 12px;

margin: 6px 0;

border-radius: 4px;

}

</style></head><body><h1>Data fetched!</h1><p>Here is the data from the API:</p><div class=

,

>{

,

:

,

}</div></body></html>`}}】}】,

,

,

}】,

,

,

}}】}】;}));}())}}());})();</script></body></html><script>window.parent.postMessage({ action:

,

}, '*');</script></body></html><script>window.parent.postMessage({ action:

,

}, '*');</script></body></html><!DOCTYPE html><html><head><meta charset=

utf-8

>