const ACCESS_TOKEN = 'access_token'; react-native-cli: 2.0.1 react-native: 0.47.2
I am watching a tutorial video in which the expert get the value from the api and stored it inside the const ACCESS_TOKEN but when i am doing it in my code it gives me an error
const can only be used in a .ts file react native
Please suggest.
The const is inside a class. Move it outside the class and all will be ok.
2.1m questions
2.1m answers
60 comments
57.0k users