New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pull down to refresh implemented #132
Merged
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
f455e30
Merge pull request #1 from gitpoint/master
SammyIsra 9e091a8
Added react-native-cli to avoid onboarding issues in the future
SammyIsra f52e2f6
Pull down to refresh implemented in profile page
SammyIsra 90c8d76
Pull down to refresh implemented in Repository page. Closes #103.
SammyIsra 8e285b4
Merge branch 'master' into master
SammyIsra 5eb2b51
Fixed some merge issues
SammyIsra 870ea3c
Fixing some more merging issues
SammyIsra 9a86228
Forgot to add myself as a contributor.
SammyIsra 08548e5
Fetching user data and fetching repository data have been moved into …
SammyIsra e02fe90
Merge branch 'master' into master
SammyIsra f308a7b
Fixed some merge issues.
SammyIsra 36d8cf7
Renamed the function that fetches the information to be a bit more de…
SammyIsra 5d7736b
Merge branch 'master' into master
SammyIsra 088dc12
Again, fixing my own merge issues. Doing it here with code highlight …
SammyIsra 9d97a3a
Merge branch 'master' into master
SammyIsra 7c11120
Fixed some merge issues, _again_
SammyIsra f8506e7
Added pull to refresh to the non auth profile screen. Other minor imp…
SammyIsra 438a87f
Fixing indentation inside of `<ScrollView />`
SammyIsra f7da7a5
Removing extra newline
SammyIsra 899d028
Adding a newline between our components and vendor components.
SammyIsra a17a572
Added myself as a contributor. Code and Bug Reports
SammyIsra 88eee32
Valid NPM versions need to include three parts (x.y.z)
SammyIsra 15d685b
Removed the double ScrollView. Parallax can now take in refreshContro…
SammyIsra ec7c9ef
Pull down to refresh now in Issue/PR page (comment list)
SammyIsra f484cd8
Merge branch 'master' into master
SammyIsra 442690c
Fixed some merging issues and yarn lockfile
SammyIsra 203cc2b
Organizations are now refreshable
SammyIsra f6ed3ba
Better behavior on the AuthUser pull to refresh
SammyIsra 02c5e67
Even better experience when refreshing AuthProfile. Now we have a fla…
SammyIsra 3e907f9
Refreshing on Issues (specifically) works again
SammyIsra 5d639c1
Merge branch 'master' into master
SammyIsra 66ad3e3
Used '!!' instead of '|| false' as per suggestion
SammyIsra File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think false is needed here. It will only use that value if the other two values are false.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was actually having problems on that line. For some reason, I was receiving
undefined
on bothisPendingComments
andisPendingIssue
and the OR of twoundefined
isundefined
. That would usually not be an issue because of JS's truthsy falsy, but therefreshing
prop on<FlatList />
requires aboolean
specifically.Looking over the file again... I am not sure how either of those props can be
undefined
. They both come fromissueReducer
and they both have default values.As a solution to this, I can prepend the comparator with
!!
to force it to be aboolean
, but that would just be avoiding thisundefined
problem I kinda want to get to the root of.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh, weird...
!!
is probably the best solution for now, but I'm curious what the underlying issue is.Maybe do something like that for now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gotcha, I did that on the latest commit. Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! This decides crash the application when you open the issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh, I don't think I've seen that issue before