Open 7dp opened 2 weeks ago
Hey @7dp I'm not able to reproduce the issue here. Could you please provide me with a reproducible example?
Also, I've noticed you're passing the disabled prop (instead of enabled) which is not supported by pressto
Hey, this is the reproducible project. I am using Expo with react-native
v0.75.4 here.
Please take a look.
Steps:
--template blank-typescript
PressableScale
component, e.g:
import { StatusBar } from "expo-status-bar";
import { PressableScale } from "pressto";
import { StyleSheet, Text, View } from "react-native";
import { GestureHandlerRootView } from "react-native-gesture-handler";
export default function App() { return (
); }
Repo:
https://github.com/7dp/repro-pressto-1
Thanks! 😊
Hi @enzomanuelmangano , not to mean to rush, but could you please take some time to look at this issue?
Same issue occurring for me if pressable is inside @react-native-segmented-control/segmented-control tab or react-native-pager-view tab component
Recently i found that this warning could be easily reproduced just by upgrading the GestureHandler to >= 2.17.0. 🤔
@7dp thanks for providing the repro and sorry for my late reply. Usually, when using expo it's a good practice to align all the package versions consistent with the ones expected by expo (you can run npx expo install --check or npx expo install --fix). By using the expected versions, I'm not experiencing the issue.
Is there any reason why incompatible versions are being used?
Yea, i use RNGH 2.18.1 because it was recommended by Expo official docs when upgrading to RN 0.75. Take a look at their article: https://expo.dev/changelog/2024/08-14-react-native-0.75#2-install-updated-packages
P.S: RNGH version that officially support RN 0.75 is starting from RNGH 2.18.0. Take a look: https://github.com/software-mansion/react-native-gesture-handler/releases/tag/2.18.0
@7dp Thanks! My bad, I misread the steps previously 😅 It seems that the reanimated plugin is not "workletizing" correctly the Tap Gesture and I have no idea why. Although I temporarily enforced the "worklet" keyword.
You can give a try by running:
yarn add pressto@0.2.0-beta.0
Let me know if this fixes the issue for you as well - I'll dive a bit deeper and create a new release
Very nice @enzomanuelmangano, i tried the v0.2.0-beta.0 and can confirm no warning being printed to console anymore. 🥳
I encounter this warning whenever i use the
PressableScale
frompressto
(PressableOpacity
not tested).Usage:
Logs:
Hoping to get this warnings resolved. Thanks! 😊