This page will capture all issues related to Date and React Native mobile app development. Will add more as I go through the development cycle. I will play around with Javascript for a bit before switching to TypeScript. Some of the information below might not be following the best practice as I just started the development process. Will update as I learn more about React Native + Javascript. Storing Date object in AsyncStorage You can store Date object directly into AsyncStorage. Generally in other programming language, you can store the Date object directly in a data storage. However, with React Native, you will get the the Debug Console warning on Expo Go if you do so. I recommend using JSON.stringify() command below to store the date object. Please follow the instruction below. On the side note, you can also store millisecond and use the date toString option but it is not recommended. I would recommend using stringify command as it will store using the toISOString() which is the
Comments
Post a Comment