import React from 'react';
import { Text, View, Button } from 'react-native';
import { Transitioning } from 'react-native-reanimated';
function shuffleArray(array) {
for (let i = array.length - 1; i > 0; i--) {
const j = Math.floor(Math.random() * (i + 1));
[array[i], array[j]] = [array[j], array[i]];
}
}
const SlideIn = ({ children, ...props }) => {children};
const Hour = ({ hour, min, pm }) => (
{hour}:{min}
{pm ? 'PM' : 'AM'}
);
const Location = ({ label, name, delay }) => (
<>
{label}
{name}
>
);
const Spacer = ({ height }) => ;
const Wat = () => (
✈
Notes
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec tincidunt
velit ipsum, ut scelerisque risus sodales at. Sed vehicula ligula diam.
Sed viverra molestie lobortis. Pellentesque ornare lorem ut nisi molestie,
at tempor est efficitur. Vivamus sem mi, ullamcorper sit amet dolor in,
fermentum suscipit eros.
);
const Warning = () => (
Lorem ipsum warning sit amet!
);
class ExampleApp extends React.Component {
state = {
size: 80,
visible: false,
warning: false,
rotate: '30deg',
align: 'flex-start',
};
root = React.createRef();
onClick = () => {
this.setState({
size: this.state.size + 20,
visible: !this.state.visible,
rotate: '75deg',
});
};
setStateAnimated = nextState => {
this.root.current.animateNextTransition();
this.setState(nextState);
};
render() {
const { visible, warning } = this.state;
const keys = ['red', 'blue'];
shuffleArray(keys);
return (
{/* */}
{warning ? : null}
{visible ? : null}
{/* */}
{/* {visible ? (
WAT!?
) : null} */}
);
}
}
export default ExampleApp;