Skip to content

Fix uninstantiated bYRotation variable & Lint#18

Closed
shaneboyar wants to merge 2 commits intolhandel:masterfrom
shaneboyar:master
Closed

Fix uninstantiated bYRotation variable & Lint#18
shaneboyar wants to merge 2 commits intolhandel:masterfrom
shaneboyar:master

Conversation

@shaneboyar
Copy link
Copy Markdown

This PR fixes an issue where the bYRotation variable which is conditionally set in the getCardBTransformation method is not instantiated and therefore cannot be redefined.

I also ran a linter on it, so let me know if you want me to revert those changes.

sideBTransform.transform.push({ rotateX: bXRotation });
} else {
if (Platform.OS === "ios") {
let bYRotation;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Maybe this can be done with ternary operator?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Definitely. There's probably some other refactoring that can be done as well, but I was just hoping to get this bug quickly fixed in this PR.

@shaneboyar
Copy link
Copy Markdown
Author

@lhandel Can we get this merged in?

ckknight pushed a commit to ckknight/react-native-card-flip that referenced this pull request Jan 21, 2020
Although it's likely that lhandel#18 probably also fixes this, I attempted to take a much lighter touch and just fix the problem at hand.
@sirpy
Copy link
Copy Markdown

sirpy commented Oct 20, 2020

@lhandel merge?

@shaneboyar shaneboyar closed this Mar 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants