How Can I Convert This Code In Hooks Using Reactnative Typescript

How Can I Convert This Code In Hooks Using Reactnative Typescript