react-native-animated-todo icon indicating copy to clipboard operation
react-native-animated-todo copied to clipboard

Task input field broken after #1

Open rohitghosal opened this issue 3 years ago • 10 comments

Haptic typing bug found in android testing!!!

When I try to put input in the tasks area, after every letter input back button is automatically working and we have to retype it. Like system freezing.

rohitghosal avatar Nov 21 '21 03:11 rohitghosal

@vipulbhj I found out that https://github.com/craftzdog/react-native-animated-todo/pull/1 broke the app. It basically cause rerender whole list on any action. Check attached video

@craftzdog my suggestion revert changes meanwhile

https://user-images.githubusercontent.com/6594232/143030702-745f7aa0-52d4-48c0-b3fb-0418f9fe5f8f.mp4

dimaportenko avatar Nov 23 '21 13:11 dimaportenko

That looks bad, let me check this and get a fix in. Thanks for reporting, and sorry for the bug 😅. I will send a PR like right now

vipulbhj avatar Nov 23 '21 13:11 vipulbhj

Hey @rohitghosal @dimaportenko, I have created a PR and reverted the component which caused the issue, very sorry for the issue caused. Till this gets merged, you can just replace the task-list.tsx component with the code in the link below.

https://github.com/vipulbhj/react-native-animated-todo/blob/master/src/components/task-list.tsx

I will look into detail as to what actually caused the animation to re-render so many times. Thanks for reporting 🌻🌻🌻🌻🌻🌻

vipulbhj avatar Nov 23 '21 13:11 vipulbhj

Looks like works with :point_up_2: @vipulbhj can you elaborate what was the issue? I was about to try Native Base, but now I'm doubt. I don't want to deal with such kinds of problems.

dimaportenko avatar Nov 23 '21 16:11 dimaportenko

It was not NativeBase, I messed up the memorization 😅😅😅.

NativeBase doesn't have first party support for animations, so everything from other libraries was working fine. It was lack of experience with reanimated 2 that caused the issue.

I am shocked I didn't test this before sending the PR.

I guess human errors are harder to catch by humans 😅😅😅

I am sorry

vipulbhj avatar Nov 23 '21 16:11 vipulbhj

Looks like works with 👆 @vipulbhj can you elaborate what was the issue? I was about to try Native Base, but now I'm doubt. I don't want to deal with such kinds of problems.

Well, I don't have any problem, everything is fine for me, I'm sure it's for something else, I already tried Native Base and I haven't had serious problems, well I haven't used it in complex things either

manuelduarte077 avatar Nov 24 '21 04:11 manuelduarte077

Hey all, we can close this issue now since the PR has been merged.

vipulbhj avatar Nov 24 '21 08:11 vipulbhj

So, shouldn't we use Factory because it messes up memoization?

craftzdog avatar Nov 24 '21 09:11 craftzdog

So, shouldn't we use Factory because it messes up memoization?

I am not sure that caused the issues, still looking into it, will give you a detailed feedback on this soon :)

vipulbhj avatar Nov 24 '21 14:11 vipulbhj

Hi, @vipulbhj Still waiting for this.

Thanks

So, shouldn't we use Factory because it messes up memoization?

I am not sure that caused the issues, still looking into it, will give you detailed feedback on this soon :)

I-am-abdulazeez avatar Jun 21 '22 16:06 I-am-abdulazeez