Boundaries
Key concepts: Clamping, animations (handlers)
Resources
Challenge
→ We need to keep him inside the screen boundaries.
→ We want to drop him and make him bounce on the ground.
💡 TIPS && HINTS:
- You already have the gesture handler you need for this, consider using callbacks.
- The library provides us a clamp function to bound the movement.
- You can explore the
withTiming
config for the bouncing.