import * as React from 'react';
import { ActivityIndicator, Platform, StyleSheet } from 'react-native';
import { Page, Section } from '../components/Page';
import Colors from '../constants/Colors';
function ActivityIndicatorStopping({ hidesWhenStopped }: { hidesWhenStopped?: boolean }) {
const [animating, setAnimating] = React.useState(true);
React.useEffect(() => {
let _timer: any | undefined;
const setToggleTimeout = () => {
_timer = setTimeout(() => {
setAnimating(v => !v);
setToggleTimeout();
}, 2000);
};
setToggleTimeout();
return () => clearTimeout(_timer);
}, []);
return (
);
}
export default function ActivityIndicatorScreen() {
return (
{Platform.OS === 'android' ? null : (
<>
>
)}
);
}
ActivityIndicatorScreen.navigationOptions = {
title: 'ActivityIndicator',
};
const styles = StyleSheet.create({
item: {
marginRight: 8,
},
});