For those who Swipe Button is not working, import GestureHandlerRootView from react-native-gesture-handler and wrap SwipeButton on it, worked for me. import {GestureHandlerRootView} from 'react-native-gesture-handler';
Import GestureHandlerRootView from react-native-gesture-handler and wrap SwipeButton with it, worked for me. import {GestureHandlerRootView} from 'react-native-gesture-handler';
dude - you should do more videos, your style of teaching is actually far better than the good guys. restart uploading videos. will be worth your time and help others too.
bro, u nailed it well done, just i'm having an issue where I'm using expo, the problem is the code works perfectly with ios, but it doesn't with Android
Bro great stuff, this really help me build similar component, but i want this button to be responsive as per the parent component, and from what i understand is we need to provide a number as width for this to render accordingly, any idea how can we make it responsive, thanks. I tried using Screenwidth but than will need to pass Screenwidth - somevalue from parent to this component
Hey Jimit 👋 Glad to hear that. If you want to make this responsive you can put all the values in React State and use this hook to update the computed value reactnative.dev/docs/usewindowdimensions
Thank you !!! I had to make some changes to implement in Snack: I had to add GestureHandlerRootView to wrap the main part of the PanGestureHandler and also I had to use import {LinearGradient} from 'expo-linear-gradient' instead of import LinearGradient from 'react-native-linear-gradient'
Getting error [Error: TransformError src\components\SwipeButton.js: D:\ReactNativeprojects\ezpoz\src\components\SwipeButton.js: Cannot find module '@babel/preset-typescript'. Please help me bro.Even i'm not using typeScript
Oh, looks like you need to change some parameters here and there as withTiming takes different set of parameters to interpolate as compared to withSpring
I got this issue when implementing your Swipe Button. TypeError: (0, _reactNativeReanimated.useSharedValue) is not a function. (In '(0, _reactNativeReanimated.useSharedValue)(0)', '(0, _reactNativeReanimated.useSharedValue)' is undefined)
@@FuncsIO same as me. im using expo and follow step for instalation. after that i cant run my project anymore. when i run the project the expo will force close. The Error said (TypeError: Object.values requires that input parameter not be null or undefined) whats the problem?
Maybe I am out of a topic, but does anyone know how is there any way to run the measure (reanimated 2) function in useEffect hook? That is bothering me for a few days. I already tried runOnJS function.
totaly awesome!! loved it! I added a navigation on handleComplete() function but now I am not understanding how can I reset it to initial position once I come back to this screen. Can you please help me?
hi. youre code doesn't work anymore... please update your code??
Thanks for highlighting this. Taking a deeper look at it and will try to fix it if required
For those who Swipe Button is not working, import GestureHandlerRootView from react-native-gesture-handler and wrap SwipeButton on it, worked for me.
import {GestureHandlerRootView} from 'react-native-gesture-handler';
Thanks, this has worked for me!
My slider is not working can you please give me solutions
Import GestureHandlerRootView from react-native-gesture-handler and wrap SwipeButton with it, worked for me.
import {GestureHandlerRootView} from 'react-native-gesture-handler';
@@lorran-xo dude!!!! i can't thank you enough
dude - you should do more videos, your style of teaching is actually far better than the good guys. restart uploading videos. will be worth your time and help others too.
need video for swipe button for react pwa
Noted 👐
@@FuncsIO thank you
bro, u nailed it well done, just i'm having an issue where I'm using expo, the problem is the code works perfectly with ios, but it doesn't with Android
cannot gesture
Thanks for the video ,👍👍👍
Pls make a video how to make floating overlay component in other apps using RN
Bro great stuff, this really help me build similar component, but i want this button to be responsive as per the parent component, and from what i understand is we need to provide a number as width for this to render accordingly, any idea how can we make it responsive, thanks.
I tried using Screenwidth but than will need to pass Screenwidth - somevalue from parent to this component
Hey Jimit 👋
Glad to hear that. If you want to make this responsive you can put all the values in React State and use this hook to update the computed value reactnative.dev/docs/usewindowdimensions
amazing sir , thanks a lot
Thank you !!! I had to make some changes to implement in Snack: I had to add GestureHandlerRootView to wrap the main part of the PanGestureHandler and also I had to use import {LinearGradient} from 'expo-linear-gradient' instead of import LinearGradient from 'react-native-linear-gradient'
Thanks for highlighting this, will make the same changes if required. Happy Hacking 🙌
Getting error [Error: TransformError src\components\SwipeButton.js: D:\ReactNativeprojects\ezpoz\src\components\SwipeButton.js: Cannot find module '@babel/preset-typescript'. Please help me bro.Even i'm not using typeScript
Thanks a lot 👍
Awesome man
So cool!
Bro, my android phone flickers on runOnJS setToggle when used withTiming in place of withSpring, any soln for that?
Oh, looks like you need to change some parameters here and there as withTiming takes different set of parameters to interpolate as compared to withSpring
Well done & thank you!
tks for sharing
Thanks for watching
Hi, great tutorial. I had an issue... my swipeable doesn't move :( anyone can help?
try wrapping the View of the component with GestureHandlerRootView
I got this issue when implementing your Swipe Button.
TypeError: (0, _reactNativeReanimated.useSharedValue) is not a function. (In '(0, _reactNativeReanimated.useSharedValue)(0)', '(0, _reactNativeReanimated.useSharedValue)' is undefined)
Seems like reanimated is not installed properly. Pls refer the docs for the changes required in the native side for the successful installation.
@@FuncsIO same as me. im using expo and follow step for instalation. after that i cant run my project anymore. when i run the project the expo will force close. The Error said (TypeError: Object.values requires that input parameter not be null or undefined) whats the problem?
Thank you!
Anytime
Maybe I am out of a topic, but does anyone know how is there any way to run the measure (reanimated 2) function in useEffect hook? That is bothering me for a few days. I already tried runOnJS function.
Can you try useLayoutEffect instead of useEffect
@@FuncsIO Tried, still getting error (measure) method cannot be used on RN side! :(
thanks a lot
totaly awesome!! loved it! I added a navigation on handleComplete() function but now I am not understanding how can I reset it to initial position once I come back to this screen. Can you please help me?
Did you figured out?
I found the way:
// Fires when animation ends
const handleComplete = (isToggled: any) => {
if (isToggled !== toggled) {
setToggled(isToggled);
props?.onToggle();
setTimeout(() => {
X.value = withSpring(0);
runOnJS(handleComplete)(false);
setToggled(false);
}, 1000);
}
};
Great video, thanks a lot 👍
Good 👍. Can u create video like drag and short list and grid view using animation.
@@FuncsIO In Flatlist, list of images are there like list view and grid view I won't drag and short all images using Pangature animation.
Muy buen trabajo! :D
Great work 👍
Thanks for the positive feedback