import React, { useState, useRef } from 'react';
import { Text, View, StyleSheet, Button, StatusBar } from 'react-native';
import { Transitioning, Transition } from 'react-native-reanimated';
function shuffle(array) {
array.sort(() => Math.random() - 0.5);
}
function Shuffle() {
const transition = (
);
let [items, setItems] = useState([
'🍇 Grapes',
'🍈 Melon',
'🍉 Watermelon',
'🍊 Tangerine',
'🍋 Lemon',
'🍌 Banana',
]);
const ref = useRef();
const children = items.map(item => (
{item}
));
return (
);
}
const styles = StyleSheet.create({
centerAll: {
flex: 1,
alignItems: 'center',
marginTop: 100,
},
text: {
marginTop: 10,
},
});
export default Shuffle;