Fix tap target cut off on the top half #21
Merged
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.
Fixes issue #20
I believe the issue was with part of the specified touch target being covered by another element. I tried changing the z-index, but that didn't resolve the problem. In the end, changing the outer component to use padding instead of margin seems to fix the issue, and doesn't have any impact on the positions of any of the other components (as far as I can tell).
Aside: I'm a bit new to React Native, so when I tried building this project and fixing the bug, I encountered a couple of issues because I was doing this on Windows. The build initially failed because the android/app/build.gradle file tries to call a macOS specific command ('security') - so I had to remove those pieces to get the app working. The other issue was the pre-push git hook from Husky that runs eslint did not work because of something with formatting the folder's name in quotes - changing the command to
eslint src/ --ext ...
(without quotes around the folder name) seemed to fix it on Windows. I imagine these aren't as important issues to fix, but I just figured I'd mention them in case anyone else has the same issues. 👍