mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
34 lines
751 B
TypeScript
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>
|
|
);
|
|
}
|
|
}
|