Use Useeffect As Componentwillunmount In React Native

Use Useeffect As Componentwillunmount In React Native