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

Cannot access 'withDecaySpring' before initialization #85

Open
shamxeed opened this issue Sep 9, 2024 · 3 comments
Open

Cannot access 'withDecaySpring' before initialization #85

shamxeed opened this issue Sep 9, 2024 · 3 comments

Comments

@shamxeed
Copy link

shamxeed commented Sep 9, 2024

Thanks to this amazing and indeed awesome lib. But please I am having an issue with this lib on the Web. everything works as expected on mobile but not on the web.

Screenshot (19)

@abramovks
Copy link

I have the same problem

"expo": "^51.0.31",
"react-native": "0.74.5",
"react-native-awesome-gallery": "^0.4.2",

image

@anhkieet
Copy link

anhkieet commented Dec 13, 2024

Moving the exports.withDecaySpring = withDecaySpring to the bottom of the file solved this issue

@Timothy-Anders0n
Copy link

Timothy-Anders0n commented Dec 18, 2024

Moving the exports.withDecaySpring = withDecaySpring to the bottom of the file solved this issue

Had the same issue, fixed it for me as well. Would be a quick PR for anyone.

For easy reference, the file in question is the one located at [your app root]/node_modules/react-native-awesome-gallery/lib/commonjs/utils/withDecaySpring.js

The line in question is line # 6 and like @anhkieet said, it works when it's cut/pasted at the bottom, so after the withDecaySpring function definition.

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

4 participants