multi_step_form.tsx 886 B

123456789101112131415161718192021222324252627282930
  1. import { View, StyleSheet } from 'react-native';
  2. import { StatusBar } from 'expo-status-bar';
  3. import { useEffect } from 'react';
  4. import useSignUpStore from '../../providers/signup_form_store';
  5. import Form from '../registrationMultiStepForm/formComponent/form';
  6. const MultiStepForm: React.FC = () => {
  7. const { signUpFormData } = useSignUpStore();
  8. //logging to check if parent component can successfully receive user input in the multi-step form
  9. // useEffect(() => {
  10. // console.log('Current Zustand Store:', signUpFormData);
  11. // }, [signUpFormData]);
  12. return (
  13. <View style={styles.container}>
  14. <Form />
  15. <StatusBar style="auto" />
  16. </View>
  17. );
  18. };
  19. const styles = StyleSheet.create({
  20. container: {
  21. flex: 1,
  22. paddingTop: '15%',
  23. backgroundColor: '#FFFFFF'
  24. }
  25. });
  26. export default MultiStepForm;