import React, {useEffect} from 'react'; import {StyleSheet, Text} from 'react-native'; import {View} from 'react-native-animatable'; import {Easing, useSharedValue, withTiming} from 'react-native-reanimated'; import {SafeAreaView} from 'react-native-safe-area-context'; import {useSelector} from 'react-redux'; import {RootState} from '../../store/rootReducer'; import {normalize, SCREEN_WIDTH, StatusBarHeight} from '../../utils'; import {GradientProgressBar} from '../common'; interface MomentUploadProgressBarProps {} const MomentUploadProgressBar: React.FC = ({}) => { const {momentUploadStatus} = useSelector((state: RootState) => state.user); const progress = useSharedValue(0); useEffect(() => { progress.value = withTiming(1, { duration: 5000, easing: Easing.linear, }); }, []); return ( Uploading Moment... ); }; const styles = StyleSheet.create({ background: { position: 'absolute', zIndex: 999, height: StatusBarHeight + 100, backgroundColor: 'white', width: '100%', alignItems: 'center', }, container: { justifyContent: 'space-evenly', height: '100%', }, text: { fontSize: normalize(14), fontWeight: 'bold', lineHeight: 17, marginVertical: 12, }, bar: { width: SCREEN_WIDTH * 0.9, }, }); export default MomentUploadProgressBar;