Skip to content
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

x-axis offset not working as expected (iOS) #65

Closed
dmdmd opened this issue Jan 9, 2023 · 1 comment
Closed

x-axis offset not working as expected (iOS) #65

dmdmd opened this issue Jan 9, 2023 · 1 comment

Comments

@dmdmd
Copy link

dmdmd commented Jan 9, 2023

Hello,

first of all, thank you for this library!

I'm having a hard time controlling the offset x-axis value. It seems that if I simply hardcode values or use them from a state variable, the y-axis works as expected but not the x-axis. I was able to make it work by adding a useEffect (all versions are depicted in the below-mentioned snack).

Here is a snack to reproduce the issue: https://snack.expo.dev/@heyfina-dev/react-native-button-box-shadow

It seems to work on web and android but not on ios. Could you check my snack to see if I'm doing something wrong?

iOS Web
image image

The first element offset is loaded using a state variable + useEffect to set the values.
The second element offset is loaded using a state variable.
The third element offset is hardcoded.

PS: using the safeRender prop didn't help

@ftzi
Copy link
Owner

ftzi commented Apr 14, 2023

This was handled here: #67

Sorry for the delay and thanks for the report! Should be fixed now in 7.0.7.

@ftzi ftzi closed this as completed Apr 14, 2023
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

No branches or pull requests

2 participants