I am currently working on developing a flip card game using GestureFlipView for the flip card animation. My goal is to display these flip cards in a 3X3 grid by utilizing components from React Native. However, I have encountered an issue where the cards are not flipping as expected and displaying unpredictable behavior. Only the last card seems to be functioning correctly while the others exhibit erratic behavior.
If you'd like to check out my project on Github, here's the repository link: https://github.com/akhilomar/React-Native-Number-Game
Here is a snapshot of the CardScreen component: https://i.sstatic.net/Cliww.png
Card Component Code:
import {View, Text, SafeAreaView, TouchableOpacity} from 'react-native';
import GestureFlipView from 'react-native-gesture-flip-card';
const Cards = (props) => {
// code snippet
}
export default Cards;
Card List Component Code:
import React from 'react';
import {SafeAreaView, View, FlatList, Dimensions, StyleSheet } from 'react-native';
import Cards from './Cards';
const CardScreen = () => {
// code snippet
}
export default CardScreen;