DefinitelyTyped/types/react-native-flip-card/react-native-flip-card-tests.tsx
2018-10-31 08:36:59 -07:00

34 lines
751 B
TypeScript

import * as React from "react";
import { View, Text, StyleSheet } from "react-native";
// Component
import FlipCard from "react-native-flip-card";
export default class FlipCardTest extends React.Component {
render() {
return (
<FlipCard
style={{ backgroundColor: "#fff" }}
flip={false}
friction={10}
perspective={10}
flipHorizontal={true}
flipVertical={false}
clickable={true}
onFlipStart={() => {}}
onFlipEnd={() => {}}
alignHeight={false}
alignWidth={false}
useNativeDriver={true}
>
<View>
<Text>Front</Text>
</View>
<View>
<Text>Back</Text>
</View>
</FlipCard>
);
}
}