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

TouchableNativeFeedback.Ripple is not a function #433

Closed
chris-aeviator opened this issue Jun 22, 2021 · 6 comments
Closed

TouchableNativeFeedback.Ripple is not a function #433

chris-aeviator opened this issue Jun 22, 2021 · 6 comments
Labels
bug Something isn't working

Comments

@chris-aeviator
Copy link

chris-aeviator commented Jun 22, 2021

Describe the bug
When upgrading expo from SDK V.39 to SDK V.41 I'm following the upgrade V1->V2 instructions for expo-video-player. However after migration, a previously working video player throws TouchableNativeFeedback.Ripple is not a function on expo-web.

To Reproduce
Steps to reproduce the behavior:

  1. Load VideoPlayer with expo-sdk v.41 in expo web

Expected behavior
The video player should still load after the upgrade

Additional infofmation:

  • Type: Expo web
  • Device: Desktop
  • OS: Arch Linux / Firefox V88
  • Package Version: 2.0.0
  • Expo version: 41.0.0
  • Expo CLI version: : 4.5.2
@chris-aeviator chris-aeviator added the bug Something isn't working label Jun 22, 2021
@chris-aeviator
Copy link
Author

chris-aeviator commented Jun 23, 2021

I propose that

<TouchableNativeFeedback onPress={togglePlay} background={TouchableNativeFeedback.Ripple('white', true)}>

becomes

<TouchableNativeFeedback onPress={togglePlay} background={TouchableNativeFeedback?.Ripple('white', true) ?? null}>

@ihmpavel
Copy link
Owner

Hi,
while releasing v2 i did not check properly the web version.

During this week I'll try to focus and fix all possibly errors.

Maybe as temporary fix not to throw an error in the application I should release patch fix today.

@chris-aeviator
Copy link
Author

Nice to hear that, and glad you want to keep support up for the web version.

https://stackoverflow.com/questions/43244306/react-native-touchablenativefeedback-ripple-is-not-function

suggests to use TouchableHighlight or TouchableOpacity

@ihmpavel
Copy link
Owner

Hi,
I have changed the code to reflect user platform. On Android, buttons are <TouchableNativeFeedback /> and on other platforms I changed the buttons to <TouchableOpacity />. I am not sure about the visual experience using <TouchableOpacity />. What do you think? Is it ok or should I use other Touchable element?

I created PR with the changes.

Let me know, what do you think. I am ready to create patch release immediately.

@chris-aeviator
Copy link
Author

@ihmpavel I will check this tomorrow - for my current release I completely removed the Ripple but I'm happy to try this in the morning tomorrow! Thx!

ihmpavel added a commit that referenced this issue Jun 27, 2021
@ihmpavel
Copy link
Owner

Merged into master. Version 2.0.1 #434

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants