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

Make loops work on web #35

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Make loops work on web #35

wants to merge 2 commits into from

Conversation

sertony
Copy link

@sertony sertony commented Nov 27, 2020

Currently react-native-indicator doesn't work with react-native-web due to the fact that _startNativeLoop implementation on web is not working due to the missing NativeAnimatedModule for web:
https://github.com/necolas/react-native-web/blob/a877a02beb6a2032430f83b062e173d68c40c65d/packages/react-native-web/src/vendor/react-native/Animated/NativeAnimatedHelper.js#L266

That's why the only way to make it work on web is to turn off the native driver and switch to recursive calls on JS thread:
https://github.com/necolas/react-native-web/blob/a877a02beb6a2032430f83b062e173d68c40c65d/packages/react-native-web/src/vendor/react-native/Animated/AnimatedImplementation.js#L452

@jamesqm
Copy link

jamesqm commented May 6, 2021

hi @n4kz , can you please check this PR?

@sreuter
Copy link

sreuter commented Jun 18, 2021

@n4kz Could you merge this and/or give somebody else access to help review and pull requests by any chance?

@Jackman3005
Copy link

Hey, can we move this forward? The solution seems good, what's the hold up?

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.

4 participants