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

fix: adjust native driver value based on the rn version #4246

Merged
merged 1 commit into from
Dec 27, 2023

Conversation

lukewalczak
Copy link
Member

Motivation

Adjust the useNativeDriver value in shadow animation to be based on the react-native version.

Related issue

Test plan

Tested on react-native version 0.71, 0.72 and 0.73

Copy link

The mobile version of example app from this branch is ready! You can see it here.

@lukewalczak lukewalczak merged commit 9def38b into main Dec 27, 2023
3 checks passed
mnahkies added a commit to mnahkies/react-native-paper that referenced this pull request Jan 6, 2024
in callstack#4246 a check based on react native version was introduced,
however the `Platform.constants` property is `undefined` when
targetting web using the `react-native-web` approach listed in
the docs, as the platform object is simply:
```
{"OS":"web","isTesting":false}
```

adjust it to check if the `OS` is `web` and use the native
driver as before if so.
@mnahkies
Copy link
Contributor

mnahkies commented Jan 6, 2024

@lukewalczak I think this created a regression for those targeting web using react-native-web - I've raised a PR with more details / proposed fix here #4257

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error: Style property 'shadowOffset' is not supported by native animated module
2 participants