React Native Cash Register problem solution for Tony Perriello#58
Open
tonype wants to merge 4 commits intoSoftWriters:masterfrom
Open
React Native Cash Register problem solution for Tony Perriello#58tonype wants to merge 4 commits intoSoftWriters:masterfrom
tonype wants to merge 4 commits intoSoftWriters:masterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hey all! Here is my solution for the Cash Register problem, written for iOS/Android in React Native.
Pretty much all of the top level files are generated and can be ignored. The bulk of the code I wrote is in:
src/enumssrc/screenssrc/utilsIf you'd like to run this on a physical Android device, I have an .apk on hand if needed. You can also pull these changes down and run the app on either an iOS/Android device by doing the following:
npm install --global expo-clicdto the directory where they exist, and do annpm installin the root directory.npm startorexpo startto start up the Metro bundler server.There are unit tests written in Jest for the Cash Register utility and the helpers utility files. You can do
npm run testto run the suite.This was a lot of fun! Thanks for your time and consideration.