Skip to content
This repository was archived by the owner on Sep 16, 2025. It is now read-only.

Update create account#36

Open
lm841200690 wants to merge 5 commits intoGopher-Industries:masterfrom
lm841200690:master
Open

Update create account#36
lm841200690 wants to merge 5 commits intoGopher-Industries:masterfrom
lm841200690:master

Conversation

@lm841200690
Copy link

Added the use of useEffect hook to handle changes to the switchColour and isLarge props passed from the parent component. Changed the back arrow icon in the imports to the correct one. Added useRoute hook from @react-navigation/native to access the switchColour and isLarge props passed from the previous screen. Removed unused styles in the StyleSheet.
Moved the styles constant inside the CreateAccount function for better encapsulation and readability. Replaced hard-coded styles with dynamic ones that take into account the isLarge and switchColour props. Removed the emailValidationText style as it is not used anymore. Added switchColour to the backgroundColor of the button style, depending on its value. Updated the onPress function of the Continue button to pass the switchColour and isLarge props to the next screen.

Added the use of useEffect hook to handle changes to the switchColour and isLarge props passed from the parent component.
Changed the back arrow icon in the imports to the correct one.
Added useRoute hook from @react-navigation/native to access the switchColour and isLarge props passed from the previous screen.
Removed unused styles in the StyleSheet.
Moved the styles constant inside the CreateAccount function for better encapsulation and readability.
Replaced hard-coded styles with dynamic ones that take into account the isLarge and switchColour props.
Removed the emailValidationText style as it is not used anymore.
Added switchColour to the backgroundColor of the button style, depending on its value.
Updated the onPress function of the Continue button to pass the switchColour and isLarge props to the next screen.
@deegle0-0 deegle0-0 self-requested a review April 28, 2023 08:56
Copy link
Contributor

@deegle0-0 deegle0-0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey Ming there is this error in the code. Please make the changes when you can and resubmit
image

Copy link
Contributor

@deegle0-0 deegle0-0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above^

@deegle0-0
Copy link
Contributor

Also please upload your package.json when you upload your file changes. run the code on your emulator, make sure it works and then reupload

@deegle0-0 deegle0-0 self-assigned this Apr 29, 2023
Copy link
Contributor

@deegle0-0 deegle0-0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, The whole screen is invisible now. Please try to run on your emulator and submit

Android.Emulator.-.Pixel_5_API_33_5554.2023-04-29.16-09-14.mp4

Please also make note!

Upload your package.json file and your package-lock.json as well. For some reason the ones you are uploading dont have axios, email-validator dependencies which I have to manually install.
When you run the files you will have to install the dependencies. Please run the page on emulator before you push again.

yeah
This reverts commit 490fbf3.
Bug fix
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants