|
|
@ -139,7 +139,7 @@ function Game(props){ |
|
|
|
function generatePair(answer, shapeIndex, pairIndex) { |
|
|
|
if (answer === 0) { |
|
|
|
return ( |
|
|
|
<Fade key={pairIndex} faded={challengeState.current !== pairIndex} duration={100}> |
|
|
|
<Fade key={pairIndex} faded={challengeState.current !== pairIndex} duration={500}> |
|
|
|
<View style={[styles.flexRow, styles.spaceEvenly, styles.buttonMargin]}> |
|
|
|
{generateSquare(pairIndex)} |
|
|
|
{generateShape(shapeIndex, pairIndex)} |
|
|
@ -148,7 +148,7 @@ function Game(props){ |
|
|
|
); |
|
|
|
} else { |
|
|
|
return ( |
|
|
|
<Fade key={pairIndex} faded={challengeState.current !== pairIndex} duration={100}> |
|
|
|
<Fade key={pairIndex} faded={challengeState.current !== pairIndex} duration={500}> |
|
|
|
<View style={[styles.flexRow, styles.spaceEvenly, styles.buttonMargin]}> |
|
|
|
{generateShape(shapeIndex, pairIndex)} |
|
|
|
{generateSquare(pairIndex)} |
|
|
|