import React from 'react'; import { Image, StyleSheet, Text, View, Switch } from 'react-native'; import Shimmer from 'react-native-shimmer'; import logoSource from './react-logo.png'; const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#F5FCFF', }, title: { fontSize: 22, fontWeight: '300', marginBottom: 20, }, switch: { marginBottom: 10, flexDirection: 'row', alignItems: 'center', }, switchLabel: { fontSize: 16, marginLeft: 10, }, loading: { marginVertical: 10, }, loadingText: { textAlign: 'center', fontSize: 18, fontWeight: '500', }, reactLogo: { width: 150, height: 150, }, }); export default function Example(props) { const [animating, setAnimating] = React.useState(true); return ( Shimmer Example Animating Loading... ); }