

Replicate easily the Instagram story cube animation for React Native
source link: https://reactnativeexample.com/replicate-easily-the-instagram-story-cube-animation-for-react-native/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Replicate easily the Instagram story cube animation for React Native
react-native-cube-transition
About the project
Replicate easily the Instagram story cube animation for React Native
Installation
"react-native-cube-transition":"react-native-cube-transition#0.0.1"
Usage
import { CubeTransitionView } from "react-native-cube-transition";
// ...
// type TouchEventProp = NativeSyntheticEvent<{
// touchType: 'start' | 'change' | 'end';
// }>;
const onTouch = (event: TouchEventProp) => {
console.log('[App.onTouch]', event.nativeEvent);
};
// type PageChangeProp = NativeSyntheticEvent<{
// page: number;
// }>;
const onPageChange = (event: PageChangeProp) => {
console.log('[App.PageChangeProp]', event.nativeEvent);
};
// pages will load lazily while scroll
<CubeTransitionView
style={styles.box}
onTouch={onTouch}
onPageChange={onPageChange}
>
<View style={{ ...styles.size, backgroundColor: 'black' }} />
<View style={{ ...styles.size, backgroundColor: 'orange' }} />
</CubeTransitionView>
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
GitHub
Recommend
-
55
react-native-card-flip Card flip animation for React Native. Installation npm install --save react-native-card-flip Preview
-
57
Animations have a great impact on mobile to create better the user experience, they are mostly used to interact with user’s actions and that keeps the user more engaged with your app. In the technical side, Reac...
-
11
Flip Flip card animation using gesture for React Native Mar 09, 2021...
-
9
react-native-animated-numbers Library showing animation of number changes in react-native If you want web version in react.js download react-animated-numbers install This package is using
-
4
The universal React Native animation library, powered by Reanimated 2. <View from={{ opacity: 0 }} animate={{ opacity: 1 }} /> React JSX Highlights Universal...
-
7
UI Broken UI animation implemented with react native Apr 09, 2021...
-
11
skyle An experimental universal, customizable styling and animation library for React Native. 💡 Beautiful & Easy Syntax ⚡ Performant 🎨 Highly Customizable 🔼 Expo Comp...
-
12
Easily Replicate a Card Checkout UI in .NET MAUIPracticing is always the best way to strengthen our knowledge. In this article, we will enhance your XAML skills by replicating a card checkout UI inspired by this
-
9
.NET MAUI is a cross-platform framework for building native desktop and mobile apps. One of the advantages it inherited from
-
10
pg_easy_replicate pg_easy_replicate is a CLI orchestrator tool that simplifies the process of setting up logical replication betwe...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK