项目
在 GitHub 查看
xotahal/react-native-motion
关于
轻松实现动画!
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- -2
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文React Native Motion
Change your application from the left one to the right one! Animate it! Easily! Animated Transition Article or Animated Graph Article


Getting Started
$ yarn add react-native-motion
Usage of SharedElement
We need to specify source and destination for shared element. This library then will move the shared element from source position to destination position.
class Main extends Component {
render() {
return (
<SharedElementRenderer>
<App />
</SharedElementRenderer>
);
}
}
// List items page with source of SharedElement
import { SharedElement } from 'react-native-motion';
class ListPage extends Component {
render() {
return (
<SharedElement id="source">
<View>{listItemNode}</View>
</SharedElement>
);
}
}
// Detail page with a destination shared element
import { SharedElement } from 'react-native-motion';
class DetailPage extends Component {
render() {
return (
<SharedElement sourceId="source">
<View>{listItemNode}</View>
</SharedElement>
);
}
}
Playground for react-native-motion library
- react-native-motion-playground repository
- expo app
Author
- Let me help you with animations in React Native 🤙
- Facebook Group about animation in React Native
- Publication about animation in React Native 🚗
- Personal Medium Account about programming 😍
- Subscribe a blog 📝
- Follow me on Twitter 🐦
| Jiri Otahal |
|---|
探索相关项目
加载中…