In react documentation it says that the variable and the listener hook must be declared within the component but React native complains when I try to do that. 

Is there any way to use the Hooks in React Native?
Or does anyone know if they are going to be implemented in the future ?