Insta2, Moment package and styling with flex direction
 
For developing mobile application like Instagram with react native and typescript,  this writing explains how to use moment package and make a basic styling. This article is continued one from previous article. 1. Preparation Make a project and install CocoaPods. $ npx @react-native-community/cli@latest init InstaTest react-native-template-typescript Install following packages.   $ cd InstaTest   $ npm i --save-dev @types/react-native  $ npm i --save-dev @faker-js/faker  $ npm i react-native-paper  $ npm i react-native-safe-area-context  $ npm i moment   $ cd ios  $ npx pod-install  $ cd .. react-native-paper, react-native-safe-area-context is for MD3Colors object, which will be used for color in app. moment package is for showing time in app. npx pod-install is for linking the package to iOS. Copy the previous fake data to current project directory.   $ cp -r ../FakerTest/src .  2. Making component for fake data Make Person.tsx and Person.style.ts in src/copy. This Person componen...
 
