Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

287
Views
I want to do animation between closing and opening state of drawer. How can I do that?
  useEffect(() => {
    if (isDrawerOpen == "open") {

        sv.value = 1 //withTiming(1)

    }
    else if (isDrawerOpen == 'closed') {
     sv.value = 0 //withTiming(0)
    }
}, [isDrawerOpen]);



  const screenStyle = useAnimatedStyle(() => {
    const scaleY = interpolate(sv.value, [0, 1], [1, 0.86], {
        extrapolateRight: Extrapolate.CLAMP,
    });

    const borderRadius = interpolate(sv.value, [0, 1], [1, 20], {
        extrapolateRight: Extrapolate.CLAMP,
    });

    console.log("HERE CALLED : " + scaleY)
    return {
        transform: [
            {
                scaleY,
            },
        ],
        borderRadius: borderRadius,

    };
});

**There are 2 states on offical documentation https://reactnavigation.org/docs/drawer-navigator/#drawercontent 'open' and 'closed' I want to do animation between these 2 states (like onClosing), please help me **

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!