Coding task · React Native course · Module 4: State and API data

TreasureContext

Create a Context for managing treasures.

Task

Complete the code for TreasureProvider and the custom hook useTreasure.