I\'ve been using Expo Pedometer in my app and I have decided to convert it to function component since i want to use hooks. I have already tried changing the code and I got