300字范文,内容丰富有趣,生活中的好帮手!
300字范文 > React-Native 实现 Steam集换式卡牌悬浮特效

React-Native 实现 Steam集换式卡牌悬浮特效

时间:2018-11-28 04:43:04

相关推荐

React-Native 实现 Steam集换式卡牌悬浮特效

演示图

安装

$ npm install react-native-steam-card --save

$ yarn add react-native-steam-card

项目地址

Github.

使用实例

import React from 'react';import type {Node} from 'react';import {StyleSheet, View } from 'react-native';import SteamCard from 'react-native-steam-card';// TODO: What to do with the module?const App: () => Node = () => {return (<View style={styles.container}><SteamCard source={require("./asset/island.png")}ratio={0.65}/></View>);};const styles = StyleSheet.create({container: {flex: 1,alignItems: 'center',justifyContent: 'center',borderColor: 'rgba(23,41,48,1)',},});export default App;

属性设置

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。